Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
9470e700
提交
9470e700
authored
1月 31, 2011
作者:
Brian West
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
swigall
上级
1f1541b4
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
362 行增加
和
0 行删除
+362
-0
freeswitch_wrap.cxx
src/mod/languages/mod_managed/freeswitch_wrap.cxx
+200
-0
swig.cs
src/mod/languages/mod_managed/managed/swig.cs
+162
-0
没有找到文件。
src/mod/languages/mod_managed/freeswitch_wrap.cxx
浏览文件 @
9470e700
...
@@ -9238,6 +9238,22 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_asr_feed(void * jarg1, void * jarg
...
@@ -9238,6 +9238,22 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_asr_feed(void * jarg1, void * jarg
}
}
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) {
SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_asr_check_results(void * jarg1, void * jarg2) {
int jresult ;
int jresult ;
switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ;
switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ;
...
@@ -9298,6 +9314,46 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_asr_unload_grammar(void * jarg1, c
...
@@ -9298,6 +9314,46 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_asr_unload_grammar(void * jarg1, c
}
}
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) {
SWIGEXPORT int SWIGSTDCALL CSharp_switch_core_asr_pause(void * jarg1) {
int jresult ;
int jresult ;
switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ;
switch_asr_handle_t *arg1 = (switch_asr_handle_t *) 0 ;
...
@@ -18820,6 +18876,98 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_next_get(void * jarg1)
...
@@ -18820,6 +18876,98 @@ SWIGEXPORT void * SWIGSTDCALL CSharp_switch_asr_interface_next_get(void * jarg1)
}
}
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() {
SWIGEXPORT void * SWIGSTDCALL CSharp_new_switch_asr_interface() {
void * jresult ;
void * jresult ;
switch_asr_interface *result = 0 ;
switch_asr_interface *result = 0 ;
...
@@ -27013,6 +27161,46 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_detect_speech_unload_grammar(void *
...
@@ -27013,6 +27161,46 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_detect_speech_unload_grammar(void *
}
}
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) {
SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_set_param_detect_speech(void * jarg1, char * jarg2, char * jarg3) {
int jresult ;
int jresult ;
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
...
@@ -27029,6 +27217,18 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_set_param_detect_speech(void * jarg
...
@@ -27029,6 +27217,18 @@ SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_set_param_detect_speech(void * jarg
}
}
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) {
SWIGEXPORT int SWIGSTDCALL CSharp_switch_ivr_record_session(void * jarg1, char * jarg2, unsigned long jarg3, void * jarg4) {
int jresult ;
int jresult ;
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
switch_core_session_t *arg1 = (switch_core_session_t *) 0 ;
...
...
src/mod/languages/mod_managed/managed/swig.cs
浏览文件 @
9470e700
...
@@ -1990,6 +1990,11 @@ public class freeswitch {
...
@@ -1990,6 +1990,11 @@ public class freeswitch {
return
ret
;
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
)
{
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
));
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
;
return
ret
;
...
@@ -2010,6 +2015,21 @@ public class freeswitch {
...
@@ -2010,6 +2015,21 @@ public class freeswitch {
return
ret
;
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
)
{
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
));
switch_status_t
ret
=
(
switch_status_t
)
freeswitchPINVOKE
.
switch_core_asr_pause
(
switch_asr_handle
.
getCPtr
(
ah
));
return
ret
;
return
ret
;
...
@@ -4060,11 +4080,31 @@ public class freeswitch {
...
@@ -4060,11 +4080,31 @@ public class freeswitch {
return
ret
;
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
)
{
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
);
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
;
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
)
{
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
));
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
;
return
ret
;
...
@@ -7893,6 +7933,9 @@ class freeswitchPINVOKE {
...
@@ -7893,6 +7933,9 @@ class freeswitchPINVOKE {
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_switch_core_asr_feed"
)]
[
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
);
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"
)]
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_switch_core_asr_check_results"
)]
public
static
extern
int
switch_core_asr_check_results
(
HandleRef
jarg1
,
HandleRef
jarg2
);
public
static
extern
int
switch_core_asr_check_results
(
HandleRef
jarg1
,
HandleRef
jarg2
);
...
@@ -7905,6 +7948,15 @@ class freeswitchPINVOKE {
...
@@ -7905,6 +7948,15 @@ class freeswitchPINVOKE {
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_switch_core_asr_unload_grammar"
)]
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_switch_core_asr_unload_grammar"
)]
public
static
extern
int
switch_core_asr_unload_grammar
(
HandleRef
jarg1
,
string
jarg2
);
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"
)]
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_switch_core_asr_pause"
)]
public
static
extern
int
switch_core_asr_pause
(
HandleRef
jarg1
);
public
static
extern
int
switch_core_asr_pause
(
HandleRef
jarg1
);
...
@@ -10182,6 +10234,30 @@ class freeswitchPINVOKE {
...
@@ -10182,6 +10234,30 @@ class freeswitchPINVOKE {
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_switch_asr_interface_next_get"
)]
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_switch_asr_interface_next_get"
)]
public
static
extern
IntPtr
switch_asr_interface_next_get
(
HandleRef
jarg1
);
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"
)]
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_new_switch_asr_interface"
)]
public
static
extern
IntPtr
new_switch_asr_interface
();
public
static
extern
IntPtr
new_switch_asr_interface
();
...
@@ -12126,9 +12202,21 @@ class freeswitchPINVOKE {
...
@@ -12126,9 +12202,21 @@ class freeswitchPINVOKE {
[
DllImport
(
"mod_managed"
,
EntryPoint
=
"CSharp_switch_ivr_detect_speech_unload_grammar"
)]
[
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
);
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"
)]
[
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
);
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"
)]
[
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
);
public
static
extern
int
switch_ivr_record_session
(
HandleRef
jarg1
,
string
jarg2
,
uint
jarg3
,
HandleRef
jarg4
);
...
@@ -14943,6 +15031,36 @@ namespace FreeSWITCH.Native {
...
@@ -14943,6 +15031,36 @@ namespace FreeSWITCH.Native {
using
System
;
using
System
;
using
System.Runtime.InteropServices
;
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 1.3.35
*
* Do not make changes to this file unless you 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
{
public
class
SWIGTYPE_p_f_p_switch_asr_handle_p_unsigned_long__switch_status_t
{
private
HandleRef
swigCPtr
;
private
HandleRef
swigCPtr
;
...
@@ -19959,6 +20077,50 @@ public class switch_asr_interface : IDisposable {
...
@@ -19959,6 +20077,50 @@ public class switch_asr_interface : IDisposable {
}
}
}
}
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
)
{
public
switch_asr_interface
()
:
this
(
freeswitchPINVOKE
.
new_switch_asr_interface
(),
true
)
{
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论