Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
557f1d05
提交
557f1d05
authored
6月 23, 2014
作者:
Steve Underwood
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixed issue handling modem renegotiation when a T.30 CTC message is received.
Please enter the commit message for your changes. Lines starting
上级
b21f34bf
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
154 行增加
和
2 行删除
+154
-2
fax-tests.xml
libs/spandsp/spandsp/fax-tests.xml
+146
-0
t30.c
libs/spandsp/src/t30.c
+7
-1
tsb85_extra_tests.sh
libs/spandsp/tests/tsb85_extra_tests.sh
+1
-1
没有找到文件。
libs/spandsp/spandsp/fax-tests.xml
浏览文件 @
557f1d05
...
...
@@ -233,5 +233,151 @@
<step
dir=
"R"
type=
"CLEAR"
timein=
"800"
timeout=
"1200"
/>
<step
type=
"STATUS"
value=
"OK"
/>
</test>
<test
name=
"Modem-change-at-CTC"
>
<!-- Similar test to TSB85/OREN03, but there is a modem change at the CTC -->
<!-- Tester calls DUT and sends one 15k byte STAIRSTEP page. -->
<step
type=
"CALL"
/>
<!--<step dir="T" type="CNG"/>-->
<step
dir=
"R"
type=
"CED"
/>
<step
dir=
"R"
type=
"HDLC"
modem=
"V.21"
tag=
"DIS"
value=
"FF C8 01 ..."
timeout=
"60000"
/>
<step
type=
"WAIT"
value=
"75"
/>
<step
dir=
"T"
type=
"PREAMBLE"
modem=
"V.21"
/>
<step
dir=
"T"
type=
"HDLC"
tag=
"DCS"
value=
"FF C8 41 00 60 1F 20"
/>
<step
dir=
"T"
type=
"POSTAMBLE"
/>
<step
type=
"WAIT"
value=
"75"
/>
<step
dir=
"T"
type=
"TCF"
modem=
"V.29/9600"
value=
"1800"
/>
<step
dir=
"R"
type=
"HDLC"
modem=
"V.21"
tag=
"CFR"
value=
"FF C8 21"
/>
<step
type=
"WAIT"
value=
"75"
/>
<step
dir=
"T"
type=
"PREAMBLE"
modem=
"V.29/9600"
/>
<step
dir=
"T"
type=
"PP"
value=
"etsi_300_242_a4_stairstep.tif"
frame_size=
"64"
crc_error=
"0"
/>
<step
dir=
"T"
type=
"POSTAMBLE"
/>
<step
type=
"WAIT"
value=
"75"
/>
<step
dir=
"T"
type=
"PREAMBLE"
modem=
"V.21"
/>
<step
dir=
"T"
type=
"HDLC"
tag=
"PPS-EOP"
value=
"FF C8 7D 74 00 00 10"
/>
<step
dir=
"T"
type=
"POSTAMBLE"
/>
<possible-step>
<step
dir=
"R"
type=
"HDLC"
modem=
"V.21"
tag=
"RNR"
value=
"FF C8 37"
/>
<step
dir=
"R"
type=
"SILENCE"
/>
<step
type=
"WAIT"
value=
"75"
/>
<step
dir=
"T"
type=
"PREAMBLE"
modem=
"V.21"
/>
<step
dir=
"T"
type=
"HDLC"
tag=
"RR"
value=
"FF C8 76"
/>
<step
dir=
"T"
type=
"POSTAMBLE"
/>
</possible-step>
<step
dir=
"R"
type=
"HDLC"
modem=
"V.21"
tag=
"PPR"
value=
"FF C8 3D 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 FF FF FF FF FF"
/>
<step
dir=
"R"
type=
"SILENCE"
/>
<step
type=
"WAIT"
value=
"75"
/>
<step
dir=
"T"
type=
"PREAMBLE"
modem=
"V.29/9600"
/>
<step
dir=
"T"
type=
"PP"
value=
"etsi_300_242_a4_stairstep.tif"
frame_size=
"64"
crc_error=
"0"
/>
<step
dir=
"T"
type=
"POSTAMBLE"
/>
<step
type=
"WAIT"
value=
"75"
/>
<step
dir=
"T"
type=
"PREAMBLE"
modem=
"V.21"
/>
<step
dir=
"T"
type=
"HDLC"
tag=
"PPS-EOP"
value=
"FF C8 7D 74 00 00 10"
/>
<step
dir=
"T"
type=
"POSTAMBLE"
/>
<possible-step>
<step
dir=
"R"
type=
"HDLC"
modem=
"V.21"
tag=
"RNR"
value=
"FF C8 37"
/>
<step
dir=
"R"
type=
"SILENCE"
/>
<step
type=
"WAIT"
value=
"75"
/>
<step
dir=
"T"
type=
"PREAMBLE"
modem=
"V.21"
/>
<step
dir=
"T"
type=
"HDLC"
tag=
"RR"
value=
"FF C8 76"
/>
<step
dir=
"T"
type=
"POSTAMBLE"
/>
</possible-step>
<step
dir=
"R"
type=
"HDLC"
modem=
"V.21"
tag=
"PPR"
value=
"FF C8 3D 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 FF FF FF FF FF"
/>
<step
dir=
"R"
type=
"SILENCE"
/>
<step
type=
"WAIT"
value=
"75"
/>
<step
dir=
"T"
type=
"PREAMBLE"
modem=
"V.29/9600"
/>
<step
dir=
"T"
type=
"PP"
value=
"etsi_300_242_a4_stairstep.tif"
frame_size=
"64"
crc_error=
"0"
/>
<step
dir=
"T"
type=
"POSTAMBLE"
/>
<step
type=
"WAIT"
value=
"75"
/>
<step
dir=
"T"
type=
"PREAMBLE"
modem=
"V.21"
/>
<step
dir=
"T"
type=
"HDLC"
tag=
"PPS-EOP"
value=
"FF C8 7D 74 00 00 10"
/>
<step
dir=
"T"
type=
"POSTAMBLE"
/>
<possible-step>
<step
dir=
"R"
type=
"HDLC"
modem=
"V.21"
tag=
"RNR"
value=
"FF C8 37"
/>
<step
dir=
"R"
type=
"SILENCE"
/>
<step
type=
"WAIT"
value=
"75"
/>
<step
dir=
"T"
type=
"PREAMBLE"
modem=
"V.21"
/>
<step
dir=
"T"
type=
"HDLC"
tag=
"RR"
value=
"FF C8 76"
/>
<step
dir=
"T"
type=
"POSTAMBLE"
/>
</possible-step>
<step
dir=
"R"
type=
"HDLC"
modem=
"V.21"
tag=
"PPR"
value=
"FF C8 3D 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 FF FF FF FF FF"
/>
<step
dir=
"R"
type=
"SILENCE"
/>
<step
type=
"WAIT"
value=
"75"
/>
<step
dir=
"T"
type=
"PREAMBLE"
modem=
"V.29/9600"
/>
<step
dir=
"T"
type=
"PP"
value=
"etsi_300_242_a4_stairstep.tif"
frame_size=
"64"
crc_error=
"0"
/>
<step
dir=
"T"
type=
"POSTAMBLE"
/>
<step
type=
"WAIT"
value=
"75"
/>
<step
dir=
"T"
type=
"PREAMBLE"
modem=
"V.21"
/>
<step
dir=
"T"
type=
"HDLC"
tag=
"PPS-EOP"
value=
"FF C8 7D 74 00 00 10"
/>
<step
dir=
"T"
type=
"POSTAMBLE"
/>
<possible-step>
<step
dir=
"R"
type=
"HDLC"
modem=
"V.21"
tag=
"RNR"
value=
"FF C8 37"
/>
<step
dir=
"R"
type=
"SILENCE"
/>
<step
type=
"WAIT"
value=
"75"
/>
<step
dir=
"T"
type=
"PREAMBLE"
modem=
"V.21"
/>
<step
dir=
"T"
type=
"HDLC"
tag=
"RR"
value=
"FF C8 76"
/>
<step
dir=
"T"
type=
"POSTAMBLE"
/>
</possible-step>
<step
dir=
"R"
type=
"HDLC"
modem=
"V.21"
tag=
"PPR"
value=
"FF C8 3D 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01 FF FF FF FF FF"
/>
<step
dir=
"R"
type=
"SILENCE"
/>
<step
type=
"WAIT"
value=
"75"
/>
<step
dir=
"T"
type=
"PREAMBLE"
modem=
"V.21"
/>
<step
dir=
"T"
type=
"HDLC"
tag=
"CTC + V.27ter/4800"
value=
"FF C8 48 00 10"
/>
<step
dir=
"T"
type=
"POSTAMBLE"
/>
<step
dir=
"R"
type=
"HDLC"
modem=
"V.21"
tag=
"CTR"
value=
"FF C8 23"
/>
<step
dir=
"R"
type=
"SILENCE"
/>
<step
type=
"WAIT"
value=
"75"
/>
<step
dir=
"T"
type=
"PREAMBLE"
modem=
"V.27ter/4800"
/>
<step
dir=
"T"
type=
"PP"
value=
"etsi_300_242_a4_stairstep.tif"
frame_size=
"64"
/>
<step
dir=
"T"
type=
"POSTAMBLE"
/>
<step
type=
"WAIT"
value=
"75"
/>
<step
dir=
"T"
type=
"PREAMBLE"
modem=
"V.21"
/>
<step
dir=
"T"
type=
"HDLC"
tag=
"PPS-EOP"
value=
"FF C8 7D 74 00 00 6B"
/>
<step
dir=
"T"
type=
"POSTAMBLE"
/>
<possible-step>
<step
dir=
"R"
type=
"HDLC"
modem=
"V.21"
tag=
"RNR"
value=
"FF C8 37"
/>
<step
dir=
"R"
type=
"SILENCE"
/>
<step
type=
"WAIT"
value=
"75"
/>
<step
dir=
"T"
type=
"PREAMBLE"
modem=
"V.21"
/>
<step
dir=
"T"
type=
"HDLC"
tag=
"RR"
value=
"FF C8 76"
/>
<step
dir=
"T"
type=
"POSTAMBLE"
/>
</possible-step>
<step
dir=
"R"
type=
"HDLC"
modem=
"V.21"
tag=
"MCF"
value=
"FF C8 31"
/>
<step
dir=
"R"
type=
"SILENCE"
/>
<step
type=
"WAIT"
value=
"75"
/>
<step
dir=
"T"
type=
"PREAMBLE"
modem=
"V.21"
/>
<step
dir=
"T"
type=
"HDLC"
tag=
"DCN"
value=
"FF C8 5F"
/>
<step
dir=
"T"
type=
"POSTAMBLE"
/>
<step
dir=
"T"
type=
"CLEAR"
/>
<step
dir=
"R"
type=
"CLEAR"
timein=
"0"
timeout=
"100"
/>
<step
type=
"STATUS"
value=
"OK"
/>
</test>
</test-group>
</fax-tests>
libs/spandsp/src/t30.c
浏览文件 @
557f1d05
...
...
@@ -3865,8 +3865,14 @@ static void process_state_f_doc_and_post_doc_ecm(t30_state_t *s, const uint8_t *
process_rx_pps
(
s
,
msg
,
len
);
break
;
case
T30_CTC
:
if
((
msg
[
4
]
&
(
DISBIT6
|
DISBIT5
|
DISBIT4
|
DISBIT3
))
!=
fallback_sequence
[
s
->
current_fallback
].
dcs_code
)
{
span_log
(
&
s
->
logging
,
SPAN_LOG_FLOW
,
"Modem changed in CTC.
\n
"
);
if
((
s
->
current_fallback
=
find_fallback_entry
(
msg
[
4
]
&
(
DISBIT6
|
DISBIT5
|
DISBIT4
|
DISBIT3
)))
<
0
)
span_log
(
&
s
->
logging
,
SPAN_LOG_FLOW
,
"Remote asked for a modem standard we do not support
\n
"
);
}
s
->
image_carrier_attempted
=
false
;
/* T.30 says we change back to long training here */
/* T.30 says we change back to long training here
, whether or not the far end changed the modem type.
*/
s
->
short_train
=
false
;
queue_phase
(
s
,
T30_PHASE_D_TX
);
set_state
(
s
,
T30_STATE_F_DOC_ECM
);
...
...
libs/spandsp/tests/tsb85_extra_tests.sh
浏览文件 @
557f1d05
...
...
@@ -28,7 +28,7 @@ run_tsb85_test()
fi
}
for
TEST
in
PPS-MPS-lost-PPS V17-12000-V29-9600 Phase-D-collision
for
TEST
in
PPS-MPS-lost-PPS V17-12000-V29-9600 Phase-D-collision
Modem-change-at-CTC
do
run_tsb85_test
done
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论