Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
6fe1deda
提交
6fe1deda
authored
1月 09, 2017
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
swigall
上级
51b2f1e8
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
132 行增加
和
0 行删除
+132
-0
CoreSession.java
...nguages/mod_java/src/org/freeswitch/swig/CoreSession.java
+4
-0
freeswitchJNI.java
...uages/mod_java/src/org/freeswitch/swig/freeswitchJNI.java
+1
-0
switch_swig_wrap.cpp
src/mod/languages/mod_java/switch_swig_wrap.cpp
+22
-0
mod_lua_wrap.cpp
src/mod/languages/mod_lua/mod_lua_wrap.cpp
+28
-0
freeswitch.pm
src/mod/languages/mod_perl/freeswitch.pm
+1
-0
mod_perl_wrap.cpp
src/mod/languages/mod_perl/mod_perl_wrap.cpp
+40
-0
freeswitch.py
src/mod/languages/mod_python/freeswitch.py
+1
-0
mod_python_wrap.cpp
src/mod/languages/mod_python/mod_python_wrap.cpp
+35
-0
没有找到文件。
src/mod/languages/mod_java/src/org/freeswitch/swig/CoreSession.java
浏览文件 @
6fe1deda
...
@@ -126,6 +126,10 @@ public class CoreSession {
...
@@ -126,6 +126,10 @@ public class CoreSession {
return
freeswitchJNI
.
CoreSession_answer
(
swigCPtr
,
this
);
return
freeswitchJNI
.
CoreSession_answer
(
swigCPtr
,
this
);
}
}
public
int
print
(
String
txt
)
{
return
freeswitchJNI
.
CoreSession_print
(
swigCPtr
,
this
,
txt
);
}
public
int
preAnswer
()
{
public
int
preAnswer
()
{
return
freeswitchJNI
.
CoreSession_preAnswer
(
swigCPtr
,
this
);
return
freeswitchJNI
.
CoreSession_preAnswer
(
swigCPtr
,
this
);
}
}
...
...
src/mod/languages/mod_java/src/org/freeswitch/swig/freeswitchJNI.java
浏览文件 @
6fe1deda
...
@@ -113,6 +113,7 @@ public class freeswitchJNI {
...
@@ -113,6 +113,7 @@ public class freeswitchJNI {
public
final
static
native
String
CoreSession_voice_name_get
(
long
jarg1
,
CoreSession
jarg1_
);
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_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_answer
(
long
jarg1
,
CoreSession
jarg1_
);
public
final
static
native
int
CoreSession_print
(
long
jarg1
,
CoreSession
jarg1_
,
String
jarg2
);
public
final
static
native
int
CoreSession_preAnswer
(
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_hangup
(
long
jarg1
,
CoreSession
jarg1_
,
String
jarg2
);
public
final
static
native
void
CoreSession_hangupState
(
long
jarg1
,
CoreSession
jarg1_
);
public
final
static
native
void
CoreSession_hangupState
(
long
jarg1
,
CoreSession
jarg1_
);
...
...
src/mod/languages/mod_java/switch_swig_wrap.cpp
浏览文件 @
6fe1deda
...
@@ -2166,6 +2166,28 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1answ
...
@@ -2166,6 +2166,28 @@ SWIGEXPORT jint JNICALL Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1answ
}
}
SWIGEXPORT
jint
JNICALL
Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1print
(
JNIEnv
*
jenv
,
jclass
jcls
,
jlong
jarg1
,
jobject
jarg1_
,
jstring
jarg2
)
{
jint
jresult
=
0
;
CoreSession
*
arg1
=
(
CoreSession
*
)
0
;
char
*
arg2
=
(
char
*
)
0
;
int
result
;
(
void
)
jenv
;
(
void
)
jcls
;
(
void
)
jarg1_
;
arg1
=
*
(
CoreSession
**
)
&
jarg1
;
arg2
=
0
;
if
(
jarg2
)
{
arg2
=
(
char
*
)
jenv
->
GetStringUTFChars
(
jarg2
,
0
);
if
(
!
arg2
)
return
0
;
}
result
=
(
int
)(
arg1
)
->
print
(
arg2
);
jresult
=
(
jint
)
result
;
if
(
arg2
)
jenv
->
ReleaseStringUTFChars
(
jarg2
,
(
const
char
*
)
arg2
);
return
jresult
;
}
SWIGEXPORT
jint
JNICALL
Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1preAnswer
(
JNIEnv
*
jenv
,
jclass
jcls
,
jlong
jarg1
,
jobject
jarg1_
)
{
SWIGEXPORT
jint
JNICALL
Java_org_freeswitch_swig_freeswitchJNI_CoreSession_1preAnswer
(
JNIEnv
*
jenv
,
jclass
jcls
,
jlong
jarg1
,
jobject
jarg1_
)
{
jint
jresult
=
0
;
jint
jresult
=
0
;
CoreSession
*
arg1
=
(
CoreSession
*
)
0
;
CoreSession
*
arg1
=
(
CoreSession
*
)
0
;
...
...
src/mod/languages/mod_lua/mod_lua_wrap.cpp
浏览文件 @
6fe1deda
...
@@ -4967,6 +4967,33 @@ fail:
...
@@ -4967,6 +4967,33 @@ fail:
}
}
static
int
_wrap_CoreSession_print
(
lua_State
*
L
)
{
int
SWIG_arg
=
0
;
CoreSession
*
arg1
=
(
CoreSession
*
)
0
;
char
*
arg2
=
(
char
*
)
0
;
int
result
;
SWIG_check_num_args
(
"CoreSession::print"
,
2
,
2
)
if
(
!
SWIG_isptrtype
(
L
,
1
))
SWIG_fail_arg
(
"CoreSession::print"
,
1
,
"CoreSession *"
);
if
(
!
SWIG_lua_isnilstring
(
L
,
2
))
SWIG_fail_arg
(
"CoreSession::print"
,
2
,
"char *"
);
if
(
!
SWIG_IsOK
(
SWIG_ConvertPtr
(
L
,
1
,(
void
**
)
&
arg1
,
SWIGTYPE_p_CoreSession
,
0
))){
SWIG_fail_ptr
(
"CoreSession_print"
,
1
,
SWIGTYPE_p_CoreSession
);
}
arg2
=
(
char
*
)
lua_tostring
(
L
,
2
);
result
=
(
int
)(
arg1
)
->
print
(
arg2
);
lua_pushnumber
(
L
,
(
lua_Number
)
result
);
SWIG_arg
++
;
return
SWIG_arg
;
if
(
0
)
SWIG_fail
;
fail:
lua_error
(
L
);
return
SWIG_arg
;
}
static
int
_wrap_CoreSession_preAnswer
(
lua_State
*
L
)
{
static
int
_wrap_CoreSession_preAnswer
(
lua_State
*
L
)
{
int
SWIG_arg
=
0
;
int
SWIG_arg
=
0
;
CoreSession
*
arg1
=
(
CoreSession
*
)
0
;
CoreSession
*
arg1
=
(
CoreSession
*
)
0
;
...
@@ -6658,6 +6685,7 @@ delete arg1;
...
@@ -6658,6 +6685,7 @@ delete arg1;
static
swig_lua_method
swig_CoreSession_methods
[]
=
{
static
swig_lua_method
swig_CoreSession_methods
[]
=
{
{
"insertFile"
,
_wrap_CoreSession_insertFile
},
{
"insertFile"
,
_wrap_CoreSession_insertFile
},
{
"answer"
,
_wrap_CoreSession_answer
},
{
"answer"
,
_wrap_CoreSession_answer
},
{
"print"
,
_wrap_CoreSession_print
},
{
"preAnswer"
,
_wrap_CoreSession_preAnswer
},
{
"preAnswer"
,
_wrap_CoreSession_preAnswer
},
{
"hangup"
,
_wrap_CoreSession_hangup
},
{
"hangup"
,
_wrap_CoreSession_hangup
},
{
"hangupState"
,
_wrap_CoreSession_hangupState
},
{
"hangupState"
,
_wrap_CoreSession_hangupState
},
...
...
src/mod/languages/mod_perl/freeswitch.pm
浏览文件 @
6fe1deda
...
@@ -418,6 +418,7 @@ sub DESTROY {
...
@@ -418,6 +418,7 @@ sub DESTROY {
*
swig_voice_name_set
=
*
freeswitchc::
CoreSession_voice_name_set
;
*
swig_voice_name_set
=
*
freeswitchc::
CoreSession_voice_name_set
;
*
insertFile
=
*
freeswitchc::
CoreSession_insertFile
;
*
insertFile
=
*
freeswitchc::
CoreSession_insertFile
;
*
answer
=
*
freeswitchc::
CoreSession_answer
;
*
answer
=
*
freeswitchc::
CoreSession_answer
;
*
print
=
*
freeswitchc::
CoreSession_print
;
*
preAnswer
=
*
freeswitchc::
CoreSession_preAnswer
;
*
preAnswer
=
*
freeswitchc::
CoreSession_preAnswer
;
*
hangup
=
*
freeswitchc::
CoreSession_hangup
;
*
hangup
=
*
freeswitchc::
CoreSession_hangup
;
*
hangupState
=
*
freeswitchc::
CoreSession_hangupState
;
*
hangupState
=
*
freeswitchc::
CoreSession_hangupState
;
...
...
src/mod/languages/mod_perl/mod_perl_wrap.cpp
浏览文件 @
6fe1deda
...
@@ -5941,6 +5941,45 @@ XS(_wrap_CoreSession_answer) {
...
@@ -5941,6 +5941,45 @@ XS(_wrap_CoreSession_answer) {
}
}
XS
(
_wrap_CoreSession_print
)
{
{
CoreSession
*
arg1
=
(
CoreSession
*
)
0
;
char
*
arg2
=
(
char
*
)
0
;
void
*
argp1
=
0
;
int
res1
=
0
;
int
res2
;
char
*
buf2
=
0
;
int
alloc2
=
0
;
int
argvi
=
0
;
int
result
;
dXSARGS
;
if
((
items
<
2
)
||
(
items
>
2
))
{
SWIG_croak
(
"Usage: CoreSession_print(self,txt);"
);
}
res1
=
SWIG_ConvertPtr
(
ST
(
0
),
&
argp1
,
SWIGTYPE_p_CoreSession
,
0
|
0
);
if
(
!
SWIG_IsOK
(
res1
))
{
SWIG_exception_fail
(
SWIG_ArgError
(
res1
),
"in method '"
"CoreSession_print"
"', argument "
"1"" of type '"
"CoreSession *""'"
);
}
arg1
=
reinterpret_cast
<
CoreSession
*
>
(
argp1
);
res2
=
SWIG_AsCharPtrAndSize
(
ST
(
1
),
&
buf2
,
NULL
,
&
alloc2
);
if
(
!
SWIG_IsOK
(
res2
))
{
SWIG_exception_fail
(
SWIG_ArgError
(
res2
),
"in method '"
"CoreSession_print"
"', argument "
"2"" of type '"
"char *""'"
);
}
arg2
=
reinterpret_cast
<
char
*
>
(
buf2
);
result
=
(
int
)(
arg1
)
->
print
(
arg2
);
ST
(
argvi
)
=
SWIG_From_int
SWIG_PERL_CALL_ARGS_1
(
static_cast
<
int
>
(
result
));
argvi
++
;
if
(
alloc2
==
SWIG_NEWOBJ
)
delete
[]
buf2
;
XSRETURN
(
argvi
);
fail
:
if
(
alloc2
==
SWIG_NEWOBJ
)
delete
[]
buf2
;
SWIG_croak_null
();
}
}
XS
(
_wrap_CoreSession_preAnswer
)
{
XS
(
_wrap_CoreSession_preAnswer
)
{
{
{
CoreSession
*
arg1
=
(
CoreSession
*
)
0
;
CoreSession
*
arg1
=
(
CoreSession
*
)
0
;
...
@@ -10417,6 +10456,7 @@ static swig_command_info swig_commands[] = {
...
@@ -10417,6 +10456,7 @@ static swig_command_info swig_commands[] = {
{
"freeswitchc::CoreSession_voice_name_get"
,
_wrap_CoreSession_voice_name_get
},
{
"freeswitchc::CoreSession_voice_name_get"
,
_wrap_CoreSession_voice_name_get
},
{
"freeswitchc::CoreSession_insertFile"
,
_wrap_CoreSession_insertFile
},
{
"freeswitchc::CoreSession_insertFile"
,
_wrap_CoreSession_insertFile
},
{
"freeswitchc::CoreSession_answer"
,
_wrap_CoreSession_answer
},
{
"freeswitchc::CoreSession_answer"
,
_wrap_CoreSession_answer
},
{
"freeswitchc::CoreSession_print"
,
_wrap_CoreSession_print
},
{
"freeswitchc::CoreSession_preAnswer"
,
_wrap_CoreSession_preAnswer
},
{
"freeswitchc::CoreSession_preAnswer"
,
_wrap_CoreSession_preAnswer
},
{
"freeswitchc::CoreSession_hangup"
,
_wrap_CoreSession_hangup
},
{
"freeswitchc::CoreSession_hangup"
,
_wrap_CoreSession_hangup
},
{
"freeswitchc::CoreSession_hangupState"
,
_wrap_CoreSession_hangupState
},
{
"freeswitchc::CoreSession_hangupState"
,
_wrap_CoreSession_hangupState
},
...
...
src/mod/languages/mod_python/freeswitch.py
浏览文件 @
6fe1deda
...
@@ -317,6 +317,7 @@ class CoreSession(_object):
...
@@ -317,6 +317,7 @@ class CoreSession(_object):
if
_newclass
:
voice_name
=
_swig_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
(
self
,
*
args
):
return
_freeswitch
.
CoreSession_insertFile
(
self
,
*
args
)
def
insertFile
(
self
,
*
args
):
return
_freeswitch
.
CoreSession_insertFile
(
self
,
*
args
)
def
answer
(
self
):
return
_freeswitch
.
CoreSession_answer
(
self
)
def
answer
(
self
):
return
_freeswitch
.
CoreSession_answer
(
self
)
def
_print
(
self
,
*
args
):
return
_freeswitch
.
CoreSession__print
(
self
,
*
args
)
def
preAnswer
(
self
):
return
_freeswitch
.
CoreSession_preAnswer
(
self
)
def
preAnswer
(
self
):
return
_freeswitch
.
CoreSession_preAnswer
(
self
)
def
hangup
(
self
,
cause
=
"normal_clearing"
):
return
_freeswitch
.
CoreSession_hangup
(
self
,
cause
)
def
hangup
(
self
,
cause
=
"normal_clearing"
):
return
_freeswitch
.
CoreSession_hangup
(
self
,
cause
)
def
hangupState
(
self
):
return
_freeswitch
.
CoreSession_hangupState
(
self
)
def
hangupState
(
self
):
return
_freeswitch
.
CoreSession_hangupState
(
self
)
...
...
src/mod/languages/mod_python/mod_python_wrap.cpp
浏览文件 @
6fe1deda
...
@@ -6897,6 +6897,40 @@ fail:
...
@@ -6897,6 +6897,40 @@ fail:
}
}
SWIGINTERN PyObject *_wrap_CoreSession__print(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
char *arg2 = (char *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 ;
char *buf2 = 0 ;
int alloc2 = 0 ;
PyObject * obj0 = 0 ;
PyObject * obj1 = 0 ;
int result;
if (!PyArg_ParseTuple(args,(char *)"OO:CoreSession__print",&obj0,&obj1)) SWIG_fail;
res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_CoreSession, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CoreSession__print" "', argument " "1"" of type '" "CoreSession *""'");
}
arg1 = reinterpret_cast< CoreSession * >(argp1);
res2 = SWIG_AsCharPtrAndSize(obj1, &buf2, NULL, &alloc2);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CoreSession__print" "', argument " "2"" of type '" "char *""'");
}
arg2 = reinterpret_cast< char * >(buf2);
result = (int)(arg1)->print(arg2);
resultobj = SWIG_From_int(static_cast< int >(result));
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return resultobj;
fail:
if (alloc2 == SWIG_NEWOBJ) delete[] buf2;
return NULL;
}
SWIGINTERN PyObject *_wrap_CoreSession_preAnswer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
SWIGINTERN PyObject *_wrap_CoreSession_preAnswer(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *resultobj = 0;
PyObject *resultobj = 0;
CoreSession *arg1 = (CoreSession *) 0 ;
CoreSession *arg1 = (CoreSession *) 0 ;
...
@@ -10262,6 +10296,7 @@ static PyMethodDef SwigMethods[] = {
...
@@ -10262,6 +10296,7 @@ static PyMethodDef SwigMethods[] = {
{ (char *)"CoreSession_voice_name_get", _wrap_CoreSession_voice_name_get, METH_VARARGS, NULL},
{ (char *)"CoreSession_voice_name_get", _wrap_CoreSession_voice_name_get, METH_VARARGS, NULL},
{ (char *)"CoreSession_insertFile", _wrap_CoreSession_insertFile, METH_VARARGS, NULL},
{ (char *)"CoreSession_insertFile", _wrap_CoreSession_insertFile, METH_VARARGS, NULL},
{ (char *)"CoreSession_answer", _wrap_CoreSession_answer, METH_VARARGS, NULL},
{ (char *)"CoreSession_answer", _wrap_CoreSession_answer, METH_VARARGS, NULL},
{ (char *)"CoreSession__print", _wrap_CoreSession__print, METH_VARARGS, NULL},
{ (char *)"CoreSession_preAnswer", _wrap_CoreSession_preAnswer, METH_VARARGS, NULL},
{ (char *)"CoreSession_preAnswer", _wrap_CoreSession_preAnswer, METH_VARARGS, NULL},
{ (char *)"CoreSession_hangup", _wrap_CoreSession_hangup, METH_VARARGS, NULL},
{ (char *)"CoreSession_hangup", _wrap_CoreSession_hangup, METH_VARARGS, NULL},
{ (char *)"CoreSession_hangupState", _wrap_CoreSession_hangupState, METH_VARARGS, NULL},
{ (char *)"CoreSession_hangupState", _wrap_CoreSession_hangupState, METH_VARARGS, NULL},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论