Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
0fb179ac
提交
0fb179ac
authored
6月 30, 2014
作者:
Patrice Fournier
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add new option to request TEP to be used for an outbound fax call
上级
ebe4238a
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
17 行增加
和
0 行删除
+17
-0
mod_spandsp.c
src/mod/applications/mod_spandsp/mod_spandsp.c
+7
-0
mod_spandsp.h
src/mod/applications/mod_spandsp/mod_spandsp.h
+1
-0
mod_spandsp_fax.c
src/mod/applications/mod_spandsp/mod_spandsp_fax.c
+9
-0
没有找到文件。
src/mod/applications/mod_spandsp/mod_spandsp.c
浏览文件 @
0fb179ac
...
@@ -508,6 +508,7 @@ switch_status_t load_configuration(switch_bool_t reload)
...
@@ -508,6 +508,7 @@ switch_status_t load_configuration(switch_bool_t reload)
spandsp_globals
.
enable_t38
=
1
;
spandsp_globals
.
enable_t38
=
1
;
spandsp_globals
.
enable_tep
=
0
;
spandsp_globals
.
total_sessions
=
0
;
spandsp_globals
.
total_sessions
=
0
;
spandsp_globals
.
verbose
=
0
;
spandsp_globals
.
verbose
=
0
;
spandsp_globals
.
use_ecm
=
1
;
spandsp_globals
.
use_ecm
=
1
;
...
@@ -608,6 +609,12 @@ switch_status_t load_configuration(switch_bool_t reload)
...
@@ -608,6 +609,12 @@ switch_status_t load_configuration(switch_bool_t reload)
spandsp_globals
.
enable_grayscale_to_bilevel
=
1
;
spandsp_globals
.
enable_grayscale_to_bilevel
=
1
;
else
else
spandsp_globals
.
enable_grayscale_to_bilevel
=
0
;
spandsp_globals
.
enable_grayscale_to_bilevel
=
0
;
}
else
if
(
!
strcmp
(
name
,
"enable-tep"
))
{
if
(
switch_true
(
value
))
{
spandsp_globals
.
enable_tep
=
1
;
}
else
{
spandsp_globals
.
enable_tep
=
0
;
}
}
else
if
(
!
strcmp
(
name
,
"enable-t38"
))
{
}
else
if
(
!
strcmp
(
name
,
"enable-t38"
))
{
if
(
switch_true
(
value
))
{
if
(
switch_true
(
value
))
{
spandsp_globals
.
enable_t38
=
1
;
spandsp_globals
.
enable_t38
=
1
;
...
...
src/mod/applications/mod_spandsp/mod_spandsp.h
浏览文件 @
0fb179ac
...
@@ -60,6 +60,7 @@ struct spandsp_globals {
...
@@ -60,6 +60,7 @@ struct spandsp_globals {
short
int
use_ecm
;
short
int
use_ecm
;
short
int
verbose
;
short
int
verbose
;
short
int
disable_v17
;
short
int
disable_v17
;
short
int
enable_tep
;
short
int
enable_colour_fax
;
short
int
enable_colour_fax
;
short
int
enable_image_resizing
;
short
int
enable_image_resizing
;
short
int
enable_colour_to_bilevel
;
short
int
enable_colour_to_bilevel
;
...
...
src/mod/applications/mod_spandsp/mod_spandsp_fax.c
浏览文件 @
0fb179ac
...
@@ -90,6 +90,7 @@ struct pvt_s {
...
@@ -90,6 +90,7 @@ struct pvt_s {
int
use_ecm
;
int
use_ecm
;
int
disable_v17
;
int
disable_v17
;
int
enable_tep
;
int
enable_colour_fax
;
int
enable_colour_fax
;
int
enable_image_resizing
;
int
enable_image_resizing
;
int
enable_colour_to_bilevel
;
int
enable_colour_to_bilevel
;
...
@@ -835,6 +836,8 @@ static switch_status_t spanfax_init(pvt_t *pvt, transport_mode_t trans_mode)
...
@@ -835,6 +836,8 @@ static switch_status_t spanfax_init(pvt_t *pvt, transport_mode_t trans_mode)
t38_gateway_set_supported_modems
(
pvt
->
t38_gateway_state
,
T30_SUPPORT_V17
|
T30_SUPPORT_V29
|
T30_SUPPORT_V27TER
);
t38_gateway_set_supported_modems
(
pvt
->
t38_gateway_state
,
T30_SUPPORT_V17
|
T30_SUPPORT_V29
|
T30_SUPPORT_V27TER
);
}
}
t38_gateway_set_tep_mode
(
pvt
->
t38_gateway_state
,
pvt
->
enable_tep
);
t38_gateway_set_ecm_capability
(
pvt
->
t38_gateway_state
,
pvt
->
use_ecm
);
t38_gateway_set_ecm_capability
(
pvt
->
t38_gateway_state
,
pvt
->
use_ecm
);
switch_channel_set_variable
(
channel
,
"fax_ecm_requested"
,
pvt
->
use_ecm
?
"true"
:
"false"
);
switch_channel_set_variable
(
channel
,
"fax_ecm_requested"
,
pvt
->
use_ecm
?
"true"
:
"false"
);
...
@@ -1240,6 +1243,12 @@ static pvt_t *pvt_init(switch_core_session_t *session, mod_spandsp_fax_applicati
...
@@ -1240,6 +1243,12 @@ static pvt_t *pvt_init(switch_core_session_t *session, mod_spandsp_fax_applicati
pvt
->
use_ecm
=
spandsp_globals
.
use_ecm
;
pvt
->
use_ecm
=
spandsp_globals
.
use_ecm
;
}
}
if
((
tmp
=
switch_channel_get_variable
(
channel
,
"fax_enable_tep"
)))
{
pvt
->
enable_tep
=
switch_true
(
tmp
);
}
else
{
pvt
->
enable_tep
=
spandsp_globals
.
enable_tep
;
}
if
((
tmp
=
switch_channel_get_variable
(
channel
,
"fax_disable_v17"
)))
{
if
((
tmp
=
switch_channel_get_variable
(
channel
,
"fax_disable_v17"
)))
{
pvt
->
disable_v17
=
switch_true
(
tmp
);
pvt
->
disable_v17
=
switch_true
(
tmp
);
}
else
{
}
else
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论