Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
982bcf41
提交
982bcf41
authored
10月 25, 2011
作者:
Nenad Corbic
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
freetdm: added debugging - changed order of block/unblock
上级
f8ae7e74
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
9 行增加
和
8 行删除
+9
-8
ftmod_sangoma_ss7_relay.c
...tdm/src/ftmod/ftmod_sangoma_ss7/ftmod_sangoma_ss7_relay.c
+9
-8
没有找到文件。
libs/freetdm/src/ftmod/ftmod_sangoma_ss7/ftmod_sangoma_ss7_relay.c
浏览文件 @
982bcf41
...
...
@@ -42,8 +42,6 @@
/******************************************************************************/
/* PROTOTYPES *****************************************************************/
ftdm_status_t
handle_relay_connect
(
RyMngmt
*
sta
);
ftdm_status_t
handle_relay_disconnect
(
RyMngmt
*
sta
);
/*static ftdm_status_t enable_all_ckts_for_relay(void);*/
static
ftdm_status_t
reconfig_all_ckts_for_relay
(
void
);
...
...
@@ -84,23 +82,24 @@ ftdm_status_t handle_relay_connect(RyMngmt *sta)
/******************************************************************************/
ftdm_status_t
handle_relay_disconnect_on_error
(
RyMngmt
*
sta
)
{
SS7_DEBUG
(
"SS7 relay disconnect on error
\n
"
);
/* check which procId is in error, if it is 1, disable the ckts */
if
(
sta
->
t
.
usta
.
s
.
ryErrUsta
.
errPid
==
1
)
{
/* we've lost the server, bring down the mtp2 links */
disble_all_mtp2_sigs_for_relay
();
/* we've lost the server, bring the sig status down on all ckts */
disable_all_ckts_for_relay
();
/* we've lost the server, bring down the mtp2 links */
disble_all_mtp2_sigs_for_relay
();
}
/* check if the channel is a server, means we just lost a MGW */
if
(
g_ftdm_sngss7_data
.
cfg
.
relay
[
sta
->
t
.
usta
.
s
.
ryErrUsta
.
errPid
].
type
==
LRY_CT_TCP_SERVER
)
{
/* we've lost the client, bring down all mtp3 links for this procId */
disable_all_sigs_for_relay
(
sta
->
t
.
usta
.
s
.
ryErrUsta
.
errPid
);
/* we've lost the client, bring down all the ckts for this procId */
block_all_ckts_for_relay
(
sta
->
t
.
usta
.
s
.
ryErrUsta
.
errPid
);
/* we've lost the client, bring down all mtp3 links for this procId */
disable_all_sigs_for_relay
(
sta
->
t
.
usta
.
s
.
ryErrUsta
.
errPid
);
}
return
FTDM_SUCCESS
;
...
...
@@ -110,6 +109,8 @@ ftdm_status_t handle_relay_disconnect_on_error(RyMngmt *sta)
ftdm_status_t
handle_relay_disconnect_on_down
(
RyMngmt
*
sta
)
{
SS7_DEBUG
(
"SS7 relay disconnect on down
\n
"
);
/* check if the channel is a server, means we just lost a MGW */
if
(
g_ftdm_sngss7_data
.
cfg
.
relay
[
sta
->
t
.
usta
.
s
.
ryUpUsta
.
id
].
type
==
LRY_CT_TCP_SERVER
)
{
block_all_ckts_for_relay
(
sta
->
t
.
usta
.
s
.
ryUpUsta
.
id
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论