Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
d4232e54
提交
d4232e54
authored
12月 13, 2011
作者:
Anthony Minessale
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
FS-3757 --resolve
上级
0596f2a6
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
17 行增加
和
0 行删除
+17
-0
mod_spandsp.c
src/mod/applications/mod_spandsp/mod_spandsp.c
+1
-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
+15
-0
没有找到文件。
src/mod/applications/mod_spandsp/mod_spandsp.c
浏览文件 @
d4232e54
...
@@ -334,6 +334,7 @@ switch_status_t load_configuration(switch_bool_t reload)
...
@@ -334,6 +334,7 @@ switch_status_t load_configuration(switch_bool_t reload)
spandsp_globals
.
spool
=
switch_core_strdup
(
spandsp_globals
.
config_pool
,
"/tmp"
);
spandsp_globals
.
spool
=
switch_core_strdup
(
spandsp_globals
.
config_pool
,
"/tmp"
);
spandsp_globals
.
ident
=
"SpanDSP Fax Ident"
;
spandsp_globals
.
ident
=
"SpanDSP Fax Ident"
;
spandsp_globals
.
header
=
"SpanDSP Fax Header"
;
spandsp_globals
.
header
=
"SpanDSP Fax Header"
;
spandsp_globals
.
timezone
=
""
;
/* TODO make configuration param */
/* TODO make configuration param */
spandsp_globals
.
tonedebug
=
1
;
spandsp_globals
.
tonedebug
=
1
;
...
...
src/mod/applications/mod_spandsp/mod_spandsp.h
浏览文件 @
d4232e54
...
@@ -62,6 +62,7 @@ struct spandsp_globals {
...
@@ -62,6 +62,7 @@ struct spandsp_globals {
short
int
enable_t38_insist
;
short
int
enable_t38_insist
;
char
*
ident
;
char
*
ident
;
char
*
header
;
char
*
header
;
char
*
timezone
;
char
*
prepend_string
;
char
*
prepend_string
;
char
*
spool
;
char
*
spool
;
switch_thread_cond_t
*
cond
;
switch_thread_cond_t
*
cond
;
...
...
src/mod/applications/mod_spandsp/mod_spandsp_fax.c
浏览文件 @
d4232e54
...
@@ -83,6 +83,7 @@ struct pvt_s {
...
@@ -83,6 +83,7 @@ struct pvt_s {
char
*
filename
;
char
*
filename
;
char
*
ident
;
char
*
ident
;
char
*
header
;
char
*
header
;
char
*
timezone
;
int
use_ecm
;
int
use_ecm
;
int
disable_v17
;
int
disable_v17
;
...
@@ -830,6 +831,8 @@ static switch_status_t spanfax_init(pvt_t *pvt, transport_mode_t trans_mode)
...
@@ -830,6 +831,8 @@ static switch_status_t spanfax_init(pvt_t *pvt, transport_mode_t trans_mode)
/* All the things which are common to audio and T.38 FAX setup */
/* All the things which are common to audio and T.38 FAX setup */
t30_set_tx_ident
(
t30
,
pvt
->
ident
);
t30_set_tx_ident
(
t30
,
pvt
->
ident
);
t30_set_tx_page_header_info
(
t30
,
pvt
->
header
);
t30_set_tx_page_header_info
(
t30
,
pvt
->
header
);
if
(
pvt
->
timezone
&&
pvt
->
timezone
[
0
])
t30_set_tx_page_header_tz
(
t30
,
pvt
->
timezone
);
t30_set_phase_e_handler
(
t30
,
phase_e_handler
,
pvt
);
t30_set_phase_e_handler
(
t30
,
phase_e_handler
,
pvt
);
t30_set_phase_d_handler
(
t30
,
phase_d_handler
,
pvt
);
t30_set_phase_d_handler
(
t30
,
phase_d_handler
,
pvt
);
...
@@ -1206,6 +1209,18 @@ static pvt_t *pvt_init(switch_core_session_t *session, mod_spandsp_fax_applicati
...
@@ -1206,6 +1209,18 @@ static pvt_t *pvt_init(switch_core_session_t *session, mod_spandsp_fax_applicati
pvt
->
header
=
switch_core_session_strdup
(
session
,
spandsp_globals
.
header
);
pvt
->
header
=
switch_core_session_strdup
(
session
,
spandsp_globals
.
header
);
}
}
if
((
tmp
=
switch_channel_get_variable
(
channel
,
"fax_timezone"
)))
{
char
*
data
=
NULL
;
data
=
strdup
(
tmp
);
switch_url_decode
(
data
);
pvt
->
timezone
=
switch_core_session_strdup
(
session
,
data
);
switch_safe_free
(
data
);
}
else
{
pvt
->
timezone
=
switch_core_session_strdup
(
session
,
spandsp_globals
.
timezone
);
}
if
(
pvt
->
app_mode
==
FUNCTION_TX
)
{
if
(
pvt
->
app_mode
==
FUNCTION_TX
)
{
if
((
tmp
=
switch_channel_get_variable
(
channel
,
"fax_start_page"
)))
{
if
((
tmp
=
switch_channel_get_variable
(
channel
,
"fax_start_page"
)))
{
pvt
->
tx_page_start
=
atoi
(
tmp
);
pvt
->
tx_page_start
=
atoi
(
tmp
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论