Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
bbae68a1
提交
bbae68a1
authored
4月 20, 2012
作者:
Giovanni Maruzzelli
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
gsmopen: compile with gsmlib by default, cosmetics on unicode console tests
上级
855e16c2
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
12 行增加
和
7 行删除
+12
-7
Makefile
src/mod/endpoints/mod_gsmopen/Makefile
+1
-1
Makefile.am
src/mod/endpoints/mod_gsmopen/Makefile.am
+1
-1
gsmopen_protocol.cpp
src/mod/endpoints/mod_gsmopen/gsmopen_protocol.cpp
+3
-3
mod_gsmopen.cpp
src/mod/endpoints/mod_gsmopen/mod_gsmopen.cpp
+7
-2
没有找到文件。
src/mod/endpoints/mod_gsmopen/Makefile
浏览文件 @
bbae68a1
MODNAME
=
mod_gsmopen
SVNDEF
:=
-D
'GSMOPEN_SVN_VERSION="
$(
shell
svnversion -n .
)
"'
LOCAL_CFLAGS
+=
$(SVNDEF)
-I
../../../../libs/spandsp/src
-I
../../../..//libs/tiff-3.8.2/libtiff
LOCAL_LDFLAGS
=
-L
../../../../libs/spandsp/src
-lspandsp
-lctb-0
.16
#
-lgsmme
LOCAL_LDFLAGS
=
-L
../../../../libs/spandsp/src
-lspandsp
-lctb-0
.16
-lgsmme
LOCAL_OBJS
=
gsmopen_protocol.o
include
../../../../build/modmake.rules
src/mod/endpoints/mod_gsmopen/Makefile.am
浏览文件 @
bbae68a1
...
...
@@ -13,7 +13,7 @@ mod_LTLIBRARIES = mod_gsmopen.la
mod_gsmopen_la_SOURCES
=
mod_gsmopen.cpp gsmopen_protocol.cpp
mod_gsmopen_la_CFLAGS
=
$(AM_CFLAGS)
-I
$(SPANDSP_DIR)
/src
-I
$(TIFF_DIR)
/libtiff
-I
$(SPANDSP_BUILDDIR)
/src
-I
$(TIFF_BUILDDIR)
/libtiff
-I
.
-DGSMOPEN_SVN_VERSION
=
\"
`
cat
$(switch_builddir)
/.version
`
\"
mod_gsmopen_la_LIBADD
=
$(switch_builddir)
/libfreeswitch.la
$(SPANDSP_LA)
$(TIFF_LA)
mod_gsmopen_la_LDFLAGS
=
-avoid-version
-module
-no-undefined
-lctb-0
.16
#
-lgsmme
mod_gsmopen_la_LDFLAGS
=
-avoid-version
-module
-no-undefined
-lctb-0
.16
-lgsmme
$(SPANDSP_LA)
:
$(TIFF_LA) $(SPANDSP_DIR) $(SPANDSP_DIR)/.update
cd
$(SPANDSP_BUILDDIR)
&&
$(MAKE)
-j1
...
...
src/mod/endpoints/mod_gsmopen/gsmopen_protocol.cpp
浏览文件 @
bbae68a1
...
...
@@ -2297,7 +2297,7 @@ int ucs2_to_utf8(private_t *tech_pvt, char *ucs2_in, char *utf8_out, size_t outb
memset
(
converted
,
'\0'
,
sizeof
(
converted
));
DEBUGA_GSMOPEN
(
"ucs2_in=|%s|, utf8_out=|%s|
èèè, %s
\n
"
,
GSMOPEN_P_LOG
,
ucs2_in
,
utf8_out
,
"èèè"
);
DEBUGA_GSMOPEN
(
"ucs2_in=|%s|, utf8_out=|%s|
\n
"
,
GSMOPEN_P_LOG
,
ucs2_in
,
utf8_out
);
/* cicopet */
for
(
c
=
0
;
c
<
strlen
(
ucs2_in
);
c
++
)
{
sprintf
(
stringa
,
"0x%c%c"
,
ucs2_in
[
c
],
ucs2_in
[
c
+
1
]);
...
...
@@ -2724,8 +2724,8 @@ int gsmopen_sendsms(private_t *tech_pvt, char *dest, char *text)
SMSMessageRef
smsMessage
;
memset
(
mesg_test
,
'\0'
,
sizeof
(
mesg_test
));
//
sprintf(mesg_test,":) ciao belè новости לק ראת ﺎﻠﺠﻤﻋﺓ 人大aèéàòçù"); //let's test the beauty of utf8
sprintf
(
mesg_test
,
":) ciao belè èéàòìù"
);
sprintf
(
mesg_test
,
":) ciao belè новости לק ראת ﺎﻠﺠﻤﻋﺓ 人大aèéàòçù"
);
//let's test the beauty of utf8
//
sprintf(mesg_test,":) ciao belè èéàòìù");
//text=mesg_test;
utf8_to_iso_8859_1
(
tech_pvt
,
text
,
strlen
(
text
),
smscommand
,
sizeof
(
smscommand
));
...
...
src/mod/endpoints/mod_gsmopen/mod_gsmopen.cpp
浏览文件 @
bbae68a1
...
...
@@ -1120,8 +1120,13 @@ static switch_status_t load_config(int reload_type)
DEBUGA_GSMOPEN
(
"Windows CODEPAGE Output =%d
\n
"
,
GSMOPEN_P_LOG
,
GetConsoleOutputCP
());
//let's hope to have utf8 in console now, you need to use Lucida Console charset for the command prompt to show unicode
#endif// WIN32
DEBUGA_GSMOPEN
(
"Charset Output Test %s
\n
"
,
GSMOPEN_P_LOG
,
"èéòàùç°§^£"
);
DEBUGA_GSMOPEN
(
"Charset Output Test %s
\n
"
,
GSMOPEN_P_LOG
,
"Согласие в различных регионах страны."
);
NOTICA
(
"GSMOPEN Charset Output Test 0 %s
\n
"
,
GSMOPEN_P_LOG
,
"èéòàù"
);
NOTICA
(
"GSMOPEN Charset Output Test 1 %s
\n
"
,
GSMOPEN_P_LOG
,
"ç°§^£"
);
NOTICA
(
"GSMOPEN Charset Output Test 2 %s
\n
"
,
GSMOPEN_P_LOG
,
"новости"
);
NOTICA
(
"GSMOPEN Charset Output Test 3 %s
\n
"
,
GSMOPEN_P_LOG
,
"ﺎﻠﺠﻤﻋﺓ"
);
NOTICA
(
"GSMOPEN Charset Output Test 4 %s
\n
"
,
GSMOPEN_P_LOG
,
"ראת"
);
NOTICA
(
"GSMOPEN Charset Output Test 5 %s
\n
"
,
GSMOPEN_P_LOG
,
"לק"
);
NOTICA
(
"GSMOPEN Charset Output Test 6 %s
\n
"
,
GSMOPEN_P_LOG
,
"人大"
);
switch_mutex_init
(
&
globals
.
mutex
,
SWITCH_MUTEX_NESTED
,
gsmopen_module_pool
);
if
(
!
(
xml
=
switch_xml_open_cfg
(
cf
,
&
cfg
,
NULL
)))
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论