Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
babe1cdb
提交
babe1cdb
authored
9月 13, 2012
作者:
Robert Jongbloed
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fixed numerous issues with T.38 support on mod_opal, now WORKS!
Added tracing for error conditions in mod_spandsp
上级
75c3e360
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
123 行增加
和
66 行删除
+123
-66
mod_spandsp_fax.c
src/mod/applications/mod_spandsp/mod_spandsp_fax.c
+13
-2
mod_opal.cpp
src/mod/endpoints/mod_opal/mod_opal.cpp
+107
-64
mod_opal.h
src/mod/endpoints/mod_opal/mod_opal.h
+3
-0
没有找到文件。
src/mod/applications/mod_spandsp/mod_spandsp_fax.c
浏览文件 @
babe1cdb
...
...
@@ -1590,21 +1590,29 @@ static switch_status_t t38_gateway_on_soft_execute(switch_core_session_t *sessio
while
(
switch_channel_ready
(
channel
)
&&
switch_channel_up
(
other_channel
)
&&
!
switch_channel_test_app_flag_key
(
"T38"
,
channel
,
CF_APP_T38
))
{
status
=
switch_core_session_read_frame
(
session
,
&
read_frame
,
SWITCH_IO_FLAG_NONE
,
0
);
if
(
!
SWITCH_READ_ACCEPTABLE
(
status
)
||
pvt
->
done
)
{
if
(
pvt
->
done
)
{
switch_log_printf
(
SWITCH_CHANNEL_SESSION_LOG
(
session
),
SWITCH_LOG_WARNING
,
"%s Premature exit while negotiating
\n
"
,
switch_channel_get_name
(
channel
));
/* Our duty is over */
goto
end_unlock
;
}
if
(
!
SWITCH_READ_ACCEPTABLE
(
status
))
{
switch_log_printf
(
SWITCH_CHANNEL_SESSION_LOG
(
session
),
SWITCH_LOG_WARNING
,
"%s Read failed, status=%u
\n
"
,
switch_channel_get_name
(
channel
),
status
);
goto
end_unlock
;
}
if
(
switch_test_flag
(
read_frame
,
SFF_CNG
))
{
continue
;
}
if
(
switch_core_session_write_frame
(
other_session
,
read_frame
,
SWITCH_IO_FLAG_NONE
,
0
)
!=
SWITCH_STATUS_SUCCESS
)
{
switch_log_printf
(
SWITCH_CHANNEL_SESSION_LOG
(
session
),
SWITCH_LOG_WARNING
,
"%s Write failed
\n
"
,
switch_channel_get_name
(
channel
));
goto
end_unlock
;
}
}
if
(
!
(
switch_channel_ready
(
channel
)
&&
switch_channel_up
(
other_channel
)))
{
switch_log_printf
(
SWITCH_CHANNEL_SESSION_LOG
(
session
),
SWITCH_LOG_WARNING
,
"%s Channel not ready
\n
"
,
switch_channel_get_name
(
channel
));
goto
end_unlock
;
}
...
...
@@ -1645,6 +1653,7 @@ static switch_status_t t38_gateway_on_soft_execute(switch_core_session_t *sessio
status
=
switch_core_session_read_frame
(
session
,
&
read_frame
,
SWITCH_IO_FLAG_NONE
,
0
);
if
(
!
SWITCH_READ_ACCEPTABLE
(
status
)
||
pvt
->
done
)
{
switch_log_printf
(
SWITCH_CHANNEL_SESSION_LOG
(
session
),
SWITCH_LOG_WARNING
,
"%s Premature exit while negotiating
\n
"
,
switch_channel_get_name
(
channel
),
status
);
/* Our duty is over */
goto
end_unlock
;
}
...
...
@@ -1654,7 +1663,9 @@ static switch_status_t t38_gateway_on_soft_execute(switch_core_session_t *sessio
}
if
(
switch_test_flag
(
read_frame
,
SFF_UDPTL_PACKET
))
{
udptl_rx_packet
(
pvt
->
udptl_state
,
read_frame
->
packet
,
read_frame
->
packetlen
);
if
(
udptl_rx_packet
(
pvt
->
udptl_state
,
read_frame
->
packet
,
read_frame
->
packetlen
)
<
0
)
{
switch_log_printf
(
SWITCH_CHANNEL_SESSION_LOG
(
session
),
SWITCH_LOG_DEBUG
,
"%s Error decoding UDPTL (%u bytes)
\n
"
,
switch_channel_get_name
(
channel
),
read_frame
->
packetlen
);
}
}
}
...
...
src/mod/endpoints/mod_opal/mod_opal.cpp
浏览文件 @
babe1cdb
差异被折叠。
点击展开。
src/mod/endpoints/mod_opal/mod_opal.h
浏览文件 @
babe1cdb
...
...
@@ -331,7 +331,10 @@ class FSConnection : public OpalLocalConnection
switch_codec_t
m_vid_read_codec
;
switch_codec_t
m_vid_write_codec
;
switch_frame_t
m_dummy_frame
;
bool
m_flushAudio
;
bool
m_udptl
;
friend
PBoolean
FSMediaStream
::
Open
();
};
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论