Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
aeb446a1
提交
aeb446a1
authored
3月 30, 2011
作者:
Jeff Lenk
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-3201 make changes similar to en support
上级
31273b42
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
145 行增加
和
96 行删除
+145
-96
mod_say_de.c
src/mod/say/mod_say_de/mod_say_de.c
+14
-9
mod_say_es.c
src/mod/say/mod_say_es/mod_say_es.c
+14
-9
mod_say_fr.c
src/mod/say/mod_say_fr/mod_say_fr.c
+18
-13
mod_say_hr.c
src/mod/say/mod_say_hr/mod_say_hr.c
+14
-9
mod_say_hu.c
src/mod/say/mod_say_hu/mod_say_hu.c
+14
-9
mod_say_it.c
src/mod/say/mod_say_it/mod_say_it.c
+14
-9
mod_say_ja.c
src/mod/say/mod_say_ja/mod_say_ja.c
+14
-8
mod_say_nl.c
src/mod/say/mod_say_nl/mod_say_nl.c
+14
-9
mod_say_ru.c
src/mod/say/mod_say_ru/mod_say_ru.c
+1
-1
mod_say_th.c
src/mod/say/mod_say_th/mod_say_th.c
+14
-10
mod_say_zh.c
src/mod/say/mod_say_zh/mod_say_zh.c
+14
-10
没有找到文件。
src/mod/say/mod_say_de/mod_say_de.c
浏览文件 @
aeb446a1
...
...
@@ -127,9 +127,22 @@ static switch_status_t de_say_general_count(switch_core_session_t *session, char
int
in
;
int
x
=
0
;
int
places
[
9
]
=
{
0
};
char
sbuf
[
1
3
]
=
""
;
char
sbuf
[
1
28
]
=
""
;
switch_status_t
status
;
if
(
say_args
->
method
==
SSM_ITERATED
)
{
if
((
tosay
=
switch_strip_commas
(
tosay
,
sbuf
,
sizeof
(
sbuf
)
-
1
)))
{
char
*
p
;
for
(
p
=
tosay
;
p
&&
*
p
;
p
++
)
{
say_file
(
"digits/%c.wav"
,
*
p
);
}
}
else
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Parse Error!
\n
"
);
return
SWITCH_STATUS_GENERR
;
}
return
SWITCH_STATUS_SUCCESS
;
}
if
(
!
(
tosay
=
switch_strip_commas
(
tosay
,
sbuf
,
sizeof
(
sbuf
)
-
1
))
||
strlen
(
tosay
)
>
9
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Parse Error!
\n
"
);
return
SWITCH_STATUS_GENERR
;
...
...
@@ -158,14 +171,6 @@ static switch_status_t de_say_general_count(switch_core_session_t *session, char
return
status
;
}
break
;
case
SSM_ITERATED
:
{
char
*
p
;
for
(
p
=
tosay
;
p
&&
*
p
;
p
++
)
{
say_file
(
"digits/%c.wav"
,
*
p
);
}
}
break
;
default:
break
;
}
...
...
src/mod/say/mod_say_es/mod_say_es.c
浏览文件 @
aeb446a1
...
...
@@ -155,9 +155,22 @@ static switch_status_t es_say_general_count(switch_core_session_t *session, char
int
in
;
int
x
=
0
;
int
places
[
9
]
=
{
0
};
char
sbuf
[
1
3
]
=
""
;
char
sbuf
[
1
28
]
=
""
;
switch_status_t
status
;
if
(
say_args
->
method
==
SSM_ITERATED
)
{
if
((
tosay
=
switch_strip_commas
(
tosay
,
sbuf
,
sizeof
(
sbuf
)
-
1
)))
{
char
*
p
;
for
(
p
=
tosay
;
p
&&
*
p
;
p
++
)
{
say_file
(
"digits/%c.wav"
,
*
p
);
}
}
else
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Parse Error!
\n
"
);
return
SWITCH_STATUS_GENERR
;
}
return
SWITCH_STATUS_SUCCESS
;
}
if
(
!
(
tosay
=
switch_strip_commas
(
tosay
,
sbuf
,
sizeof
(
sbuf
)
-
1
))
||
strlen
(
tosay
)
>
9
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Parse Error!
\n
"
);
return
SWITCH_STATUS_GENERR
;
...
...
@@ -191,14 +204,6 @@ static switch_status_t es_say_general_count(switch_core_session_t *session, char
return
status
;
}
break
;
case
SSM_ITERATED
:
{
char
*
p
;
for
(
p
=
tosay
;
p
&&
*
p
;
p
++
)
{
say_file
(
"digits/%c.wav"
,
*
p
);
}
}
break
;
default:
break
;
}
...
...
src/mod/say/mod_say_fr/mod_say_fr.c
浏览文件 @
aeb446a1
...
...
@@ -144,9 +144,26 @@ static switch_status_t fr_say_general_count(switch_core_session_t *session, char
int
in
;
int
x
=
0
;
int
places
[
9
]
=
{
0
};
char
sbuf
[
1
3
]
=
""
;
char
sbuf
[
1
28
]
=
""
;
switch_status_t
status
;
if
(
say_args
->
method
==
SSM_ITERATED
)
{
if
((
tosay
=
switch_strip_commas
(
tosay
,
sbuf
,
sizeof
(
sbuf
)
-
1
)))
{
char
*
p
;
for
(
p
=
tosay
;
p
&&
*
p
;
p
++
)
{
if
(
*
p
==
'1'
&&
say_args
->
gender
==
SSG_FEMININE
)
{
say_file
(
"digits/%c_f.wav"
,
*
p
);
}
else
{
say_file
(
"digits/%c.wav"
,
*
p
);
}
}
}
else
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Parse Error!
\n
"
);
return
SWITCH_STATUS_GENERR
;
}
return
SWITCH_STATUS_SUCCESS
;
}
if
(
!
(
tosay
=
switch_strip_commas
(
tosay
,
sbuf
,
sizeof
(
sbuf
)
-
1
))
||
strlen
(
tosay
)
>
9
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Parse Error!
\n
"
);
return
SWITCH_STATUS_GENERR
;
...
...
@@ -175,18 +192,6 @@ static switch_status_t fr_say_general_count(switch_core_session_t *session, char
return
status
;
}
break
;
case
SSM_ITERATED
:
{
char
*
p
;
for
(
p
=
tosay
;
p
&&
*
p
;
p
++
)
{
if
(
*
p
==
'1'
&&
say_args
->
gender
==
SSG_FEMININE
)
{
say_file
(
"digits/%c_f.wav"
,
*
p
);
}
else
{
say_file
(
"digits/%c.wav"
,
*
p
);
}
}
}
break
;
default:
break
;
}
...
...
src/mod/say/mod_say_hr/mod_say_hr.c
浏览文件 @
aeb446a1
...
...
@@ -356,10 +356,23 @@ static switch_status_t hr_say_general_count(switch_core_session_t *session, char
int
in
;
int
x
=
0
;
int
places
[
9
]
=
{
0
};
char
sbuf
[
1
3
]
=
""
;
char
sbuf
[
1
28
]
=
""
;
int
number
;
switch_status_t
status
;
if
(
say_args
->
method
==
SSM_ITERATED
)
{
if
((
tosay
=
switch_strip_commas
(
tosay
,
sbuf
,
sizeof
(
sbuf
)
-
1
)))
{
char
*
p
;
for
(
p
=
tosay
;
p
&&
*
p
;
p
++
)
{
say_file
(
"digits/%c.wav"
,
*
p
);
}
}
else
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Parse Error!
\n
"
);
return
SWITCH_STATUS_GENERR
;
}
return
SWITCH_STATUS_SUCCESS
;
}
if
(
!
(
tosay
=
strip_commas
(
tosay
,
sbuf
,
sizeof
(
sbuf
)))
||
strlen
(
tosay
)
>
9
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Parse Error!
\n
"
);
return
SWITCH_STATUS_GENERR
;
...
...
@@ -391,14 +404,6 @@ static switch_status_t hr_say_general_count(switch_core_session_t *session, char
return
status
;
}
break
;
case
SSM_ITERATED
:
{
char
*
p
;
for
(
p
=
tosay
;
p
&&
*
p
;
p
++
)
{
say_file
(
"digits/%c.wav"
,
*
p
);
}
}
break
;
default:
break
;
}
...
...
src/mod/say/mod_say_hu/mod_say_hu.c
浏览文件 @
aeb446a1
...
...
@@ -122,10 +122,23 @@ static switch_status_t hu_say_general_count(switch_core_session_t *session, char
int
in
;
int
x
=
0
;
int
places
[
9
]
=
{
0
};
char
sbuf
[
1
3
]
=
""
;
char
sbuf
[
1
28
]
=
""
;
int
number
;
switch_status_t
status
;
if
(
say_args
->
method
==
SSM_ITERATED
)
{
if
((
tosay
=
switch_strip_commas
(
tosay
,
sbuf
,
sizeof
(
sbuf
)
-
1
)))
{
char
*
p
;
for
(
p
=
tosay
;
p
&&
*
p
;
p
++
)
{
say_file
(
"digits/%c.wav"
,
*
p
);
}
}
else
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Parse Error!
\n
"
);
return
SWITCH_STATUS_GENERR
;
}
return
SWITCH_STATUS_SUCCESS
;
}
if
(
!
(
tosay
=
switch_strip_commas
(
tosay
,
sbuf
,
sizeof
(
sbuf
)
-
1
))
||
strlen
(
tosay
)
>
9
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Parse Error!
\n
"
);
return
SWITCH_STATUS_GENERR
;
...
...
@@ -157,14 +170,6 @@ static switch_status_t hu_say_general_count(switch_core_session_t *session, char
return
status
;
}
break
;
case
SSM_ITERATED
:
{
char
*
p
;
for
(
p
=
tosay
;
p
&&
*
p
;
p
++
)
{
say_file
(
"digits/%c.wav"
,
*
p
);
}
}
break
;
default:
break
;
}
...
...
src/mod/say/mod_say_it/mod_say_it.c
浏览文件 @
aeb446a1
...
...
@@ -131,9 +131,22 @@ static switch_status_t it_say_general_count(switch_core_session_t *session, char
int
in
;
int
places_count
=
0
;
int
places
[
9
]
=
{
0
};
char
sbuf
[
1
3
]
=
""
;
char
sbuf
[
1
28
]
=
""
;
switch_status_t
status
;
if
(
say_args
->
method
==
SSM_ITERATED
)
{
if
((
tosay
=
switch_strip_commas
(
tosay
,
sbuf
,
sizeof
(
sbuf
)
-
1
)))
{
char
*
p
;
for
(
p
=
tosay
;
p
&&
*
p
;
p
++
)
{
say_file
(
"digits/%c.wav"
,
*
p
);
}
}
else
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Parse Error!
\n
"
);
return
SWITCH_STATUS_GENERR
;
}
return
SWITCH_STATUS_SUCCESS
;
}
if
(
!
(
tosay
=
switch_strip_commas
(
tosay
,
sbuf
,
sizeof
(
sbuf
)
-
1
))
||
strlen
(
tosay
)
>
9
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Parse Error!
\n
"
);
return
SWITCH_STATUS_GENERR
;
...
...
@@ -202,14 +215,6 @@ static switch_status_t it_say_general_count(switch_core_session_t *session, char
return
status
;
}
break
;
case
SSM_ITERATED
:
{
char
*
p
;
for
(
p
=
tosay
;
p
&&
*
p
;
p
++
)
{
say_file
(
"digits/%c.wav"
,
*
p
);
}
}
break
;
default:
break
;
}
...
...
src/mod/say/mod_say_ja/mod_say_ja.c
浏览文件 @
aeb446a1
...
...
@@ -84,10 +84,23 @@ SWITCH_MODULE_DEFINITION(mod_say_ja, mod_say_ja_load, NULL, NULL);
static
switch_status_t
ja_say_general_count
(
switch_core_session_t
*
session
,
char
*
tosay
,
switch_say_args_t
*
say_args
,
switch_input_args_t
*
args
)
{
int
in
;
char
sbuf
[
1
3
]
=
""
;
char
sbuf
[
1
28
]
=
""
;
char
digits
[
11
];
int
i
;
if
(
say_args
->
method
==
SSM_ITERATED
)
{
if
((
tosay
=
switch_strip_commas
(
tosay
,
sbuf
,
sizeof
(
sbuf
)
-
1
)))
{
char
*
p
;
for
(
p
=
tosay
;
p
&&
*
p
;
p
++
)
{
say_file
(
"digits/%c.wav"
,
*
p
);
}
}
else
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Parse Error!
\n
"
);
return
SWITCH_STATUS_GENERR
;
}
return
SWITCH_STATUS_SUCCESS
;
}
if
(
!
(
tosay
=
switch_strip_commas
(
tosay
,
sbuf
,
sizeof
(
sbuf
)
-
1
))
||
strlen
(
tosay
)
>
9
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Parse Error!
\n
"
);
return
SWITCH_STATUS_GENERR
;
...
...
@@ -218,13 +231,6 @@ static switch_status_t ja_say_general_count(switch_core_session_t *session, char
}
}
break
;
case
SSM_ITERATED
:
{
char
*
p
;
for
(
p
=
tosay
;
p
&&
*
p
;
p
++
)
say_file
(
"digits/%c.wav"
,
*
p
);
}
break
;
default:
break
;
}
...
...
src/mod/say/mod_say_nl/mod_say_nl.c
浏览文件 @
aeb446a1
...
...
@@ -118,9 +118,22 @@ static switch_status_t nl_say_general_count(switch_core_session_t *session, char
int
in
;
int
x
=
0
;
int
places
[
9
]
=
{
0
};
char
sbuf
[
1
3
]
=
""
;
char
sbuf
[
1
28
]
=
""
;
switch_status_t
status
;
if
(
say_args
->
method
==
SSM_ITERATED
)
{
if
((
tosay
=
switch_strip_commas
(
tosay
,
sbuf
,
sizeof
(
sbuf
)
-
1
)))
{
char
*
p
;
for
(
p
=
tosay
;
p
&&
*
p
;
p
++
)
{
say_file
(
"digits/%c.wav"
,
*
p
);
}
}
else
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Parse Error!
\n
"
);
return
SWITCH_STATUS_GENERR
;
}
return
SWITCH_STATUS_SUCCESS
;
}
if
(
!
(
tosay
=
switch_strip_commas
(
tosay
,
sbuf
,
sizeof
(
sbuf
)
-
1
))
||
strlen
(
tosay
)
>
9
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Parse Error!
\n
"
);
return
SWITCH_STATUS_GENERR
;
...
...
@@ -149,14 +162,6 @@ static switch_status_t nl_say_general_count(switch_core_session_t *session, char
return
status
;
}
break
;
case
SSM_ITERATED
:
{
char
*
p
;
for
(
p
=
tosay
;
p
&&
*
p
;
p
++
)
{
say_file
(
"digits/%c.wav"
,
*
p
);
}
}
break
;
default:
break
;
}
...
...
src/mod/say/mod_say_ru/mod_say_ru.c
浏览文件 @
aeb446a1
...
...
@@ -157,7 +157,7 @@ static switch_status_t ru_say_count(switch_core_session_t *session, char *tosay,
int
in
;
int
x
=
0
;
int
places
[
9
]
=
{
0
};
char
sbuf
[
1
3
]
=
""
;
char
sbuf
[
1
28
]
=
""
;
int
in_
;
switch_status_t
status
;
...
...
src/mod/say/mod_say_th/mod_say_th.c
浏览文件 @
aeb446a1
...
...
@@ -90,10 +90,23 @@ SWITCH_MODULE_DEFINITION(mod_say_th, mod_say_th_load, NULL, NULL);
static
switch_status_t
th_say_general_count
(
switch_core_session_t
*
session
,
char
*
tosay
,
switch_say_args_t
*
say_args
,
switch_input_args_t
*
args
)
{
int
in
;
char
sbuf
[
1
3
]
=
""
;
char
sbuf
[
1
28
]
=
""
;
char
digits
[
11
];
int
i
;
if
(
say_args
->
method
==
SSM_ITERATED
)
{
if
((
tosay
=
switch_strip_commas
(
tosay
,
sbuf
,
sizeof
(
sbuf
)
-
1
)))
{
char
*
p
;
for
(
p
=
tosay
;
p
&&
*
p
;
p
++
)
{
say_file
(
"digits/%c.wav"
,
*
p
);
}
}
else
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Parse Error!
\n
"
);
return
SWITCH_STATUS_GENERR
;
}
return
SWITCH_STATUS_SUCCESS
;
}
if
(
!
(
tosay
=
switch_strip_commas
(
tosay
,
sbuf
,
sizeof
(
sbuf
)
-
1
))
||
strlen
(
tosay
)
>
9
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Parse Error!
\n
"
);
return
SWITCH_STATUS_GENERR
;
...
...
@@ -206,15 +219,6 @@ static switch_status_t th_say_general_count(switch_core_session_t *session, char
}
}
break
;
case
SSM_ITERATED
:
{
char
*
p
;
for
(
p
=
tosay
;
p
&&
*
p
;
p
++
)
{
say_file
(
"digits/%c.wav"
,
*
p
);
}
}
break
;
default:
break
;
}
...
...
src/mod/say/mod_say_zh/mod_say_zh.c
浏览文件 @
aeb446a1
...
...
@@ -89,10 +89,23 @@ SWITCH_MODULE_DEFINITION(mod_say_zh, mod_say_zh_load, NULL, NULL);
static
switch_status_t
zh_say_general_count
(
switch_core_session_t
*
session
,
char
*
tosay
,
switch_say_args_t
*
say_args
,
switch_input_args_t
*
args
)
{
int
in
;
char
sbuf
[
1
3
]
=
""
;
char
sbuf
[
1
28
]
=
""
;
char
digits
[
11
];
int
i
;
if
(
say_args
->
method
==
SSM_ITERATED
)
{
if
((
tosay
=
switch_strip_commas
(
tosay
,
sbuf
,
sizeof
(
sbuf
)
-
1
)))
{
char
*
p
;
for
(
p
=
tosay
;
p
&&
*
p
;
p
++
)
{
say_file
(
"digits/%c.wav"
,
*
p
);
}
}
else
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Parse Error!
\n
"
);
return
SWITCH_STATUS_GENERR
;
}
return
SWITCH_STATUS_SUCCESS
;
}
if
(
!
(
tosay
=
switch_strip_commas
(
tosay
,
sbuf
,
sizeof
(
sbuf
)
-
1
))
||
strlen
(
tosay
)
>
9
)
{
switch_log_printf
(
SWITCH_CHANNEL_LOG
,
SWITCH_LOG_ERROR
,
"Parse Error!
\n
"
);
return
SWITCH_STATUS_GENERR
;
...
...
@@ -170,15 +183,6 @@ static switch_status_t zh_say_general_count(switch_core_session_t *session, char
}
}
break
;
case
SSM_ITERATED
:
{
char
*
p
;
for
(
p
=
tosay
;
p
&&
*
p
;
p
++
)
{
say_file
(
"digits/%c.wav"
,
*
p
);
}
}
break
;
default:
break
;
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论