Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
eaa37c3e
提交
eaa37c3e
authored
4月 02, 2012
作者:
Giovanni Maruzzelli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
gsmopen: windows now works
上级
d9338ee2
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
12 行增加
和
12 行删除
+12
-12
gsmopen.h
src/mod/endpoints/mod_gsmopen/gsmopen.h
+1
-1
gsmopen_protocol.cpp
src/mod/endpoints/mod_gsmopen/gsmopen_protocol.cpp
+4
-4
makefile.vc
src/mod/endpoints/mod_gsmopen/libctb-0.16/build/makefile.vc
+3
-3
mod_gsmopen.2008.vcproj
src/mod/endpoints/mod_gsmopen/mod_gsmopen.2008.vcproj
+3
-3
mod_gsmopen.cpp
src/mod/endpoints/mod_gsmopen/mod_gsmopen.cpp
+1
-1
没有找到文件。
src/mod/endpoints/mod_gsmopen/gsmopen.h
浏览文件 @
eaa37c3e
...
...
@@ -642,7 +642,7 @@ int alarm_event(private_t * tech_pvt, int alarm_code, const char *alarm_message)
int
dump_event_full
(
private_t
*
tech_pvt
,
int
is_alarm
,
int
alarm_code
,
const
char
*
alarm_message
);
int
gsmopen_serial_init_audio_port
(
private_t
*
tech_pvt
,
speed_
t
controldevice_audio_speed
);
int
gsmopen_serial_init_audio_port
(
private_t
*
tech_pvt
,
in
t
controldevice_audio_speed
);
int
serial_audio_init
(
private_t
*
tech_pvt
);
int
serial_audio_shutdown
(
private_t
*
tech_pvt
);
src/mod/endpoints/mod_gsmopen/gsmopen_protocol.cpp
浏览文件 @
eaa37c3e
...
...
@@ -55,12 +55,12 @@ int gettimeofday(struct timeval *tv, struct sk_timezone *tz)
/***************/
#endif
/* WIN32 */
int
gsmopen_serial_init
(
private_t
*
tech_pvt
,
speed_
t
controldevice_speed
)
int
gsmopen_serial_init
(
private_t
*
tech_pvt
,
in
t
controldevice_speed
)
{
tech_pvt
->
serialPort_serial_control
=
new
ctb
::
SerialPort
();
if
(
tech_pvt
->
serialPort_serial_control
->
Open
(
"
/dev/ttyUSB3
"
,
115200
,
"8N1"
,
ctb
::
SerialPort
::
NoFlowControl
)
>=
0
)
{
if
(
tech_pvt
->
serialPort_serial_control
->
Open
(
"
COM9
"
,
115200
,
"8N1"
,
ctb
::
SerialPort
::
NoFlowControl
)
>=
0
)
{
ERRORA
(
"port SUCCESS open
\n
"
,
GSMOPEN_P_LOG
);
}
else
{
ERRORA
(
"port NOT open
\n
"
,
GSMOPEN_P_LOG
);
...
...
@@ -3574,11 +3574,11 @@ int gsmopen_serial_getstatus_AT(private_t * tech_pvt)
}
int
gsmopen_serial_init_audio_port
(
private_t
*
tech_pvt
,
speed_
t
controldevice_audio_speed
)
int
gsmopen_serial_init_audio_port
(
private_t
*
tech_pvt
,
in
t
controldevice_audio_speed
)
{
tech_pvt
->
serialPort_serial_audio
=
new
ctb
::
SerialPort
();
if
(
tech_pvt
->
serialPort_serial_audio
->
Open
(
"
/dev/ttyUSB2
"
,
115200
,
"8N1"
,
ctb
::
SerialPort
::
NoFlowControl
)
>=
0
)
{
if
(
tech_pvt
->
serialPort_serial_audio
->
Open
(
"
COM8
"
,
115200
,
"8N1"
,
ctb
::
SerialPort
::
NoFlowControl
)
>=
0
)
{
ERRORA
(
"port SUCCESS open
\n
"
,
GSMOPEN_P_LOG
);
}
else
{
ERRORA
(
"port NOT open
\n
"
,
GSMOPEN_P_LOG
);
...
...
src/mod/endpoints/mod_gsmopen/libctb-0.16/build/makefile.vc
浏览文件 @
eaa37c3e
...
...
@@ -44,7 +44,7 @@ INSTALLDIR = $(WXWIN)
### Variables: ###
CTB_LIB_CXXFLAGS
=
/M
T
$(____DEBUG_4)
/DWIN32
$(____DEBUG)
$(____DEBUG_2)
\
CTB_LIB_CXXFLAGS
=
/M
D
$(____DEBUG_4)
/DWIN32
$(____DEBUG)
$(____DEBUG_2)
\
$(______DEBUG)
/Fd..\lib\ctb$(LIBFLAG)$(GPIBFLAG)-0.16.pdb
\
$(__OPTIMIZE_FLAG)
/I..\include
/GR
/EHsc
$(CPPFLAGS)
$(CXXFLAGS)
CTB_LIB_OBJECTS
=
\
...
...
@@ -56,7 +56,7 @@ CTB_LIB_OBJECTS = \
$(OUTPUT)\ctb_lib_serport.obj
\
$(OUTPUT)\ctb_lib_timer.obj
\
$(____GPIBSRC_FILENAMES_OBJECTS)
CTB_DLL_CXXFLAGS
=
/M
T
$(____DEBUG_4)
/DWIN32
$(____DEBUG)
$(____DEBUG_2)
\
CTB_DLL_CXXFLAGS
=
/M
D
$(____DEBUG_4)
/DWIN32
$(____DEBUG)
$(____DEBUG_2)
\
$(______DEBUG)
/Fd..\lib\ctb$(LIBFLAG)$(GPIBFLAG)-0.16.pdb
\
$(__OPTIMIZE_FLAG)
/I..\include
/GR
/EHsc
$(CPPFLAGS)
$(CXXFLAGS)
CTB_DLL_OBJECTS
=
\
...
...
@@ -68,7 +68,7 @@ CTB_DLL_OBJECTS = \
$(OUTPUT)\ctb_dll_serport.obj
\
$(OUTPUT)\ctb_dll_timer.obj
\
$(____GPIBSRC_FILENAMES_1_OBJECTS)
CTBTEST_CXXFLAGS
=
/M
T
$(____DEBUG_4)
/DWIN32
$(____DEBUG)
$(____DEBUG_2)
\
CTBTEST_CXXFLAGS
=
/M
D
$(____DEBUG_4)
/DWIN32
$(____DEBUG)
$(____DEBUG_2)
\
$(______DEBUG)
/Fd$(OUTPUT)\ctbtest.pdb
/
DGPIB
=
$(GPIB)
$(__OPTIMIZE_FLAG)
\
/I..\include
/GR
/EHsc
$(CPPFLAGS)
$(CXXFLAGS)
CTBTEST_OBJECTS
=
\
...
...
src/mod/endpoints/mod_gsmopen/mod_gsmopen.2008.vcproj
浏览文件 @
eaa37c3e
...
...
@@ -39,7 +39,7 @@
/>
<Tool
Name=
"VCCLCompilerTool"
AdditionalIncludeDirectories=
""
gsmlib\gsmlib-1.10-patched-12ubuntu1
";"$(InputDir)..\..\..\..\libs\spandsp\src\msvc";"$(InputDir)..\..\..\..\libs\spandsp\src";"$(InputDir)..\..\..\..\libs\tiff-3.8.2\libtiff""
AdditionalIncludeDirectories=
""
libctb-0.16\include
";"$(InputDir)..\..\..\..\libs\spandsp\src\msvc";"$(InputDir)..\..\..\..\libs\spandsp\src";"$(InputDir)..\..\..\..\libs\tiff-3.8.2\libtiff""
PreprocessorDefinitions=
"NO_ALSA"
UsePrecompiledHeader=
"0"
WarningLevel=
"4"
...
...
@@ -56,9 +56,9 @@
/>
<Tool
Name=
"VCLinkerTool"
AdditionalOptions=
"
gsmlib
.lib "..\..\..\..\w32\library\debug\freeswitchcore.lib" "..\..\..\..\libs\libteletone\Debug\libteletone.lib" ksuser.lib "..\..\..\..\libs\win32\apr\debug\libapr-1.lib"
rpcrt4.lib "..\..\..\..\debug\libtiff.lib" "..\..\..\..\libs\spandsp\src\debug\spandsp.lib""
AdditionalOptions=
"
ctbd-0.16
.lib "..\..\..\..\w32\library\debug\freeswitchcore.lib" "..\..\..\..\libs\libteletone\Debug\libteletone.lib" ksuser.lib "..\..\..\..\libs\win32\apr\debug\libapr-1.lib"
rpcrt4.lib "..\..\..\..\debug\libtiff.lib" "..\..\..\..\libs\spandsp\src\debug\spandsp.lib""
LinkIncremental=
"1"
AdditionalLibraryDirectories=
""
gsmlib/gsmlib-1.10-patched-12ubuntu1/win32/Debug/
""
AdditionalLibraryDirectories=
""
libctb-0.16\lib
""
RandomizedBaseAddress=
"1"
DataExecutionPrevention=
"0"
/>
...
...
src/mod/endpoints/mod_gsmopen/mod_gsmopen.cpp
浏览文件 @
eaa37c3e
...
...
@@ -919,7 +919,7 @@ static switch_status_t channel_read_frame(switch_core_session_t *session, switch
*
frame
=
&
tech_pvt
->
read_frame
;
#ifdef BIGENDIAN
if
(
switch_test_flag
(
tech_pvt
,
TFLAG_LINEAR
))
{
switch_swap_linear
((
*
frame
)
->
data
,
(
int
)
(
*
frame
)
->
datalen
/
2
);
switch_swap_linear
((
int16_t
*
)(
*
frame
)
->
data
,
(
int
)
(
*
frame
)
->
datalen
/
2
);
}
#endif
//WARNINGA("HERE\n", GSMOPEN_P_LOG);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论