Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
F
freeswitch
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
张华
freeswitch
Commits
0c494497
提交
0c494497
authored
9月 06, 2012
作者:
Nenad Corbic
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Changed MTP2 events from ERROR to WARN
上级
c260bc4b
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
20 行增加
和
20 行删除
+20
-20
ftmod_sangoma_ss7_logger.c
...dm/src/ftmod/ftmod_sangoma_ss7/ftmod_sangoma_ss7_logger.c
+20
-20
没有找到文件。
libs/freetdm/src/ftmod/ftmod_sangoma_ss7/ftmod_sangoma_ss7_logger.c
浏览文件 @
0c494497
...
@@ -196,7 +196,7 @@ void handle_sng_mtp2_alarm(Pst *pst, SdMngmt *sta)
...
@@ -196,7 +196,7 @@ void handle_sng_mtp2_alarm(Pst *pst, SdMngmt *sta)
sprintf
(
buf
,
"[%s]"
,
g_ftdm_sngss7_data
.
cfg
.
mtp2Link
[
x
].
name
);
sprintf
(
buf
,
"[%s]"
,
g_ftdm_sngss7_data
.
cfg
.
mtp2Link
[
x
].
name
);
}
}
ftdm_log
(
FTDM_LOG_
ERROR
,
"[MTP2]%s %s : %s
\n
"
,
ftdm_log
(
FTDM_LOG_
WARNING
,
"[MTP2]%s %s : %s
\n
"
,
buf
,
buf
,
DECODE_LSD_EVENT
(
sta
->
t
.
usta
.
alarm
.
event
),
DECODE_LSD_EVENT
(
sta
->
t
.
usta
.
alarm
.
event
),
DECODE_LSD_CAUSE
(
sta
->
t
.
usta
.
alarm
.
cause
));
DECODE_LSD_CAUSE
(
sta
->
t
.
usta
.
alarm
.
cause
));
...
@@ -219,7 +219,7 @@ void handle_sng_mtp2_alarm(Pst *pst, SdMngmt *sta)
...
@@ -219,7 +219,7 @@ void handle_sng_mtp2_alarm(Pst *pst, SdMngmt *sta)
sprintf
(
buf
,
"[%s]"
,
g_ftdm_sngss7_data
.
cfg
.
mtp2Link
[
x
].
name
);
sprintf
(
buf
,
"[%s]"
,
g_ftdm_sngss7_data
.
cfg
.
mtp2Link
[
x
].
name
);
}
}
ftdm_log
(
FTDM_LOG_
ERROR
,
"[MTP2]%s %s : %s
\n
"
,
ftdm_log
(
FTDM_LOG_
WARNING
,
"[MTP2]%s %s : %s
\n
"
,
buf
,
buf
,
DECODE_LSD_EVENT
(
sta
->
t
.
usta
.
alarm
.
event
),
DECODE_LSD_EVENT
(
sta
->
t
.
usta
.
alarm
.
event
),
DECODE_DISC_REASON
(
sta
->
t
.
usta
.
evntParm
[
1
]));
DECODE_DISC_REASON
(
sta
->
t
.
usta
.
evntParm
[
1
]));
...
@@ -243,7 +243,7 @@ void handle_sng_mtp2_alarm(Pst *pst, SdMngmt *sta)
...
@@ -243,7 +243,7 @@ void handle_sng_mtp2_alarm(Pst *pst, SdMngmt *sta)
sprintf
(
buf
,
"[%s]"
,
g_ftdm_sngss7_data
.
cfg
.
mtp2Link
[
x
].
name
);
sprintf
(
buf
,
"[%s]"
,
g_ftdm_sngss7_data
.
cfg
.
mtp2Link
[
x
].
name
);
}
}
ftdm_log
(
FTDM_LOG_
ERROR
,
"[MTP2]%s %s : RTB Queue Len(%d)|Oldest BSN(%d)|Tx Queue Len(%d)|Outstanding Frames(%d)
\n
"
,
ftdm_log
(
FTDM_LOG_
WARNING
,
"[MTP2]%s %s : RTB Queue Len(%d)|Oldest BSN(%d)|Tx Queue Len(%d)|Outstanding Frames(%d)
\n
"
,
buf
,
buf
,
DECODE_LSD_EVENT
(
sta
->
t
.
usta
.
alarm
.
event
),
DECODE_LSD_EVENT
(
sta
->
t
.
usta
.
alarm
.
event
),
sta
->
t
.
usta
.
evntParm
[
1
],
sta
->
t
.
usta
.
evntParm
[
1
],
...
@@ -269,7 +269,7 @@ void handle_sng_mtp2_alarm(Pst *pst, SdMngmt *sta)
...
@@ -269,7 +269,7 @@ void handle_sng_mtp2_alarm(Pst *pst, SdMngmt *sta)
sprintf
(
buf
,
"[%s]"
,
g_ftdm_sngss7_data
.
cfg
.
mtp2Link
[
x
].
name
);
sprintf
(
buf
,
"[%s]"
,
g_ftdm_sngss7_data
.
cfg
.
mtp2Link
[
x
].
name
);
}
}
ftdm_log
(
FTDM_LOG_
ERROR
,
"[MTP2]%s %s : RTB Queue Len(%d)
\n
"
,
ftdm_log
(
FTDM_LOG_
WARNING
,
"[MTP2]%s %s : RTB Queue Len(%d)
\n
"
,
buf
,
buf
,
DECODE_LSD_EVENT
(
sta
->
t
.
usta
.
alarm
.
event
),
DECODE_LSD_EVENT
(
sta
->
t
.
usta
.
alarm
.
event
),
sta
->
t
.
usta
.
evntParm
[
1
]);
sta
->
t
.
usta
.
evntParm
[
1
]);
...
@@ -292,7 +292,7 @@ void handle_sng_mtp2_alarm(Pst *pst, SdMngmt *sta)
...
@@ -292,7 +292,7 @@ void handle_sng_mtp2_alarm(Pst *pst, SdMngmt *sta)
sprintf
(
buf
,
"[%s]"
,
g_ftdm_sngss7_data
.
cfg
.
mtp2Link
[
x
].
name
);
sprintf
(
buf
,
"[%s]"
,
g_ftdm_sngss7_data
.
cfg
.
mtp2Link
[
x
].
name
);
}
}
ftdm_log
(
FTDM_LOG_
ERROR
,
"[MTP2]%s %s : %d
\n
"
,
ftdm_log
(
FTDM_LOG_
WARNING
,
"[MTP2]%s %s : %d
\n
"
,
buf
,
buf
,
DECODE_LSD_EVENT
(
sta
->
t
.
usta
.
alarm
.
event
),
DECODE_LSD_EVENT
(
sta
->
t
.
usta
.
alarm
.
event
),
DECODE_DISC_REASON
(
sta
->
t
.
usta
.
evntParm
[
1
]));
DECODE_DISC_REASON
(
sta
->
t
.
usta
.
evntParm
[
1
]));
...
@@ -300,7 +300,7 @@ void handle_sng_mtp2_alarm(Pst *pst, SdMngmt *sta)
...
@@ -300,7 +300,7 @@ void handle_sng_mtp2_alarm(Pst *pst, SdMngmt *sta)
/**********************************************************************/
/**********************************************************************/
case
(
LCM_EVENT_UI_INV_EVT
):
case
(
LCM_EVENT_UI_INV_EVT
):
case
(
LCM_EVENT_LI_INV_EVT
):
case
(
LCM_EVENT_LI_INV_EVT
):
ftdm_log
(
FTDM_LOG_
ERROR
,
"[MTP2] %s(%d) : %s(%d) : Primitive (%d)
\n
"
,
ftdm_log
(
FTDM_LOG_
WARNING
,
"[MTP2] %s(%d) : %s(%d) : Primitive (%d)
\n
"
,
DECODE_LSD_EVENT
(
sta
->
t
.
usta
.
alarm
.
event
),
DECODE_LSD_EVENT
(
sta
->
t
.
usta
.
alarm
.
event
),
sta
->
t
.
usta
.
alarm
.
event
,
sta
->
t
.
usta
.
alarm
.
event
,
DECODE_LCM_CAUSE
(
sta
->
t
.
usta
.
alarm
.
cause
),
DECODE_LCM_CAUSE
(
sta
->
t
.
usta
.
alarm
.
cause
),
...
@@ -314,14 +314,14 @@ void handle_sng_mtp2_alarm(Pst *pst, SdMngmt *sta)
...
@@ -314,14 +314,14 @@ void handle_sng_mtp2_alarm(Pst *pst, SdMngmt *sta)
/******************************************************************/
/******************************************************************/
case
(
LCM_CAUSE_UNKNOWN
):
case
(
LCM_CAUSE_UNKNOWN
):
case
(
LCM_CAUSE_SWVER_NAVAIL
):
case
(
LCM_CAUSE_SWVER_NAVAIL
):
ftdm_log
(
FTDM_LOG_
ERROR
,
"[MTP2] %s : %s : Event (%d)
\n
"
,
ftdm_log
(
FTDM_LOG_
WARNING
,
"[MTP2] %s : %s : Event (%d)
\n
"
,
DECODE_LSD_EVENT
(
sta
->
t
.
usta
.
alarm
.
event
),
DECODE_LSD_EVENT
(
sta
->
t
.
usta
.
alarm
.
event
),
DECODE_LCM_CAUSE
(
sta
->
t
.
usta
.
alarm
.
cause
),
DECODE_LCM_CAUSE
(
sta
->
t
.
usta
.
alarm
.
cause
),
sta
->
t
.
usta
.
evntParm
[
0
]);
sta
->
t
.
usta
.
evntParm
[
0
]);
break
;
break
;
/******************************************************************/
/******************************************************************/
case
(
LCM_CAUSE_DECODE_ERR
):
case
(
LCM_CAUSE_DECODE_ERR
):
ftdm_log
(
FTDM_LOG_
ERROR
,
"[MTP2] %s : %s : Primitive (%d)|Version (%d)
\n
"
,
ftdm_log
(
FTDM_LOG_
WARNING
,
"[MTP2] %s : %s : Primitive (%d)|Version (%d)
\n
"
,
DECODE_LSD_EVENT
(
sta
->
t
.
usta
.
alarm
.
event
),
DECODE_LSD_EVENT
(
sta
->
t
.
usta
.
alarm
.
event
),
DECODE_LCM_CAUSE
(
sta
->
t
.
usta
.
alarm
.
cause
),
DECODE_LCM_CAUSE
(
sta
->
t
.
usta
.
alarm
.
cause
),
sta
->
t
.
usta
.
evntParm
[
0
],
sta
->
t
.
usta
.
evntParm
[
0
],
...
@@ -329,7 +329,7 @@ void handle_sng_mtp2_alarm(Pst *pst, SdMngmt *sta)
...
@@ -329,7 +329,7 @@ void handle_sng_mtp2_alarm(Pst *pst, SdMngmt *sta)
break
;
break
;
/******************************************************************/
/******************************************************************/
default:
default:
ftdm_log
(
FTDM_LOG_
ERROR
,
"[MTP2] %s(%d) : %s(%d)
\n
"
,
ftdm_log
(
FTDM_LOG_
WARNING
,
"[MTP2] %s(%d) : %s(%d)
\n
"
,
DECODE_LSD_EVENT
(
sta
->
t
.
usta
.
alarm
.
event
),
DECODE_LSD_EVENT
(
sta
->
t
.
usta
.
alarm
.
event
),
sta
->
t
.
usta
.
alarm
.
event
,
sta
->
t
.
usta
.
alarm
.
event
,
DECODE_LSD_CAUSE
(
sta
->
t
.
usta
.
alarm
.
cause
),
DECODE_LSD_CAUSE
(
sta
->
t
.
usta
.
alarm
.
cause
),
...
@@ -340,7 +340,7 @@ void handle_sng_mtp2_alarm(Pst *pst, SdMngmt *sta)
...
@@ -340,7 +340,7 @@ void handle_sng_mtp2_alarm(Pst *pst, SdMngmt *sta)
break
;
break
;
/**********************************************************************/
/**********************************************************************/
default:
default:
ftdm_log
(
FTDM_LOG_
ERROR
,
"[MTP2] %s(%d) : %s(%d)
\n
"
,
ftdm_log
(
FTDM_LOG_
WARNING
,
"[MTP2] %s(%d) : %s(%d)
\n
"
,
DECODE_LSD_EVENT
(
sta
->
t
.
usta
.
alarm
.
event
),
DECODE_LSD_EVENT
(
sta
->
t
.
usta
.
alarm
.
event
),
sta
->
t
.
usta
.
alarm
.
event
,
sta
->
t
.
usta
.
alarm
.
event
,
DECODE_LSD_CAUSE
(
sta
->
t
.
usta
.
alarm
.
cause
),
DECODE_LSD_CAUSE
(
sta
->
t
.
usta
.
alarm
.
cause
),
...
@@ -393,7 +393,7 @@ void handle_sng_mtp3_alarm(Pst *pst, SnMngmt *sta)
...
@@ -393,7 +393,7 @@ void handle_sng_mtp3_alarm(Pst *pst, SnMngmt *sta)
/**********************************************************************/
/**********************************************************************/
case
(
LSN_EVENT_INV_OPC_OTHER_END
):
case
(
LSN_EVENT_INV_OPC_OTHER_END
):
ftdm_log
(
FTDM_LOG_
ERROR
,
"[MTP3]%s %s : %s : OPC(0x%X%X%X%X)
\n
"
,
ftdm_log
(
FTDM_LOG_
WARNING
,
"[MTP3]%s %s : %s : OPC(0x%X%X%X%X)
\n
"
,
buf
,
buf
,
DECODE_LSN_EVENT
(
sta
->
t
.
usta
.
alarm
.
event
),
DECODE_LSN_EVENT
(
sta
->
t
.
usta
.
alarm
.
event
),
DECODE_LSN_CAUSE
(
sta
->
t
.
usta
.
alarm
.
cause
),
DECODE_LSN_CAUSE
(
sta
->
t
.
usta
.
alarm
.
cause
),
...
@@ -404,7 +404,7 @@ void handle_sng_mtp3_alarm(Pst *pst, SnMngmt *sta)
...
@@ -404,7 +404,7 @@ void handle_sng_mtp3_alarm(Pst *pst, SnMngmt *sta)
break
;
break
;
/**********************************************************************/
/**********************************************************************/
case
(
LSN_EVENT_INV_SLC_OTHER_END
):
case
(
LSN_EVENT_INV_SLC_OTHER_END
):
ftdm_log
(
FTDM_LOG_
ERROR
,
"[MTP3]%s %s : %s : SLC(%d)
\n
"
,
ftdm_log
(
FTDM_LOG_
WARNING
,
"[MTP3]%s %s : %s : SLC(%d)
\n
"
,
buf
,
buf
,
DECODE_LSN_EVENT
(
sta
->
t
.
usta
.
alarm
.
event
),
DECODE_LSN_EVENT
(
sta
->
t
.
usta
.
alarm
.
event
),
DECODE_LSN_CAUSE
(
sta
->
t
.
usta
.
alarm
.
cause
),
DECODE_LSN_CAUSE
(
sta
->
t
.
usta
.
alarm
.
cause
),
...
@@ -412,7 +412,7 @@ void handle_sng_mtp3_alarm(Pst *pst, SnMngmt *sta)
...
@@ -412,7 +412,7 @@ void handle_sng_mtp3_alarm(Pst *pst, SnMngmt *sta)
break
;
break
;
/**********************************************************************/
/**********************************************************************/
default:
default:
ftdm_log
(
FTDM_LOG_
DEBU
G
,
"[MTP3]%s %s(%d) : %s(%d)
\n
"
,
ftdm_log
(
FTDM_LOG_
WARNIN
G
,
"[MTP3]%s %s(%d) : %s(%d)
\n
"
,
buf
,
buf
,
DECODE_LSN_EVENT
(
sta
->
t
.
usta
.
alarm
.
event
),
DECODE_LSN_EVENT
(
sta
->
t
.
usta
.
alarm
.
event
),
sta
->
t
.
usta
.
alarm
.
event
,
sta
->
t
.
usta
.
alarm
.
event
,
...
@@ -424,7 +424,7 @@ void handle_sng_mtp3_alarm(Pst *pst, SnMngmt *sta)
...
@@ -424,7 +424,7 @@ void handle_sng_mtp3_alarm(Pst *pst, SnMngmt *sta)
break
;
break
;
/**************************************************************************/
/**************************************************************************/
case
(
STNSAP
):
case
(
STNSAP
):
ftdm_log
(
FTDM_LOG_
ERROR
,
"[MTP3][SAPID:%d] %s : %s
\n
"
,
ftdm_log
(
FTDM_LOG_
WARNING
,
"[MTP3][SAPID:%d] %s : %s
\n
"
,
sta
->
hdr
.
elmId
.
elmntInst1
,
sta
->
hdr
.
elmId
.
elmntInst1
,
DECODE_LSN_EVENT
(
sta
->
t
.
usta
.
alarm
.
event
),
DECODE_LSN_EVENT
(
sta
->
t
.
usta
.
alarm
.
event
),
DECODE_LSN_CAUSE
(
sta
->
t
.
usta
.
alarm
.
cause
));
DECODE_LSN_CAUSE
(
sta
->
t
.
usta
.
alarm
.
cause
));
...
@@ -475,7 +475,7 @@ void handle_sng_mtp3_alarm(Pst *pst, SnMngmt *sta)
...
@@ -475,7 +475,7 @@ void handle_sng_mtp3_alarm(Pst *pst, SnMngmt *sta)
break
;
break
;
/**********************************************************************/
/**********************************************************************/
default:
default:
ftdm_log
(
FTDM_LOG_
ERROR
,
"[MTP3][DPC:0x%X%X%X%X] %s : %s
\n
"
,
ftdm_log
(
FTDM_LOG_
WARNING
,
"[MTP3][DPC:0x%X%X%X%X] %s : %s
\n
"
,
sta
->
t
.
usta
.
evntParm
[
0
],
sta
->
t
.
usta
.
evntParm
[
0
],
sta
->
t
.
usta
.
evntParm
[
1
],
sta
->
t
.
usta
.
evntParm
[
1
],
sta
->
t
.
usta
.
evntParm
[
2
],
sta
->
t
.
usta
.
evntParm
[
2
],
...
@@ -745,7 +745,7 @@ void handle_sng_isup_alarm(Pst *pst, SiMngmt *sta)
...
@@ -745,7 +745,7 @@ void handle_sng_isup_alarm(Pst *pst, SiMngmt *sta)
}
/* switch (sta->t.usta.dgn.dgnVal[x].t.type) */
}
/* switch (sta->t.usta.dgn.dgnVal[x].t.type) */
}
/* for (x = 0; x < 5; x++) */
}
/* for (x = 0; x < 5; x++) */
ftdm_log
(
FTDM_LOG_
ERROR
,
"%s %s : %s
\n
"
,
ftdm_log
(
FTDM_LOG_
WARNING
,
"%s %s : %s
\n
"
,
msg
,
msg
,
DECODE_LSI_EVENT
(
sta
->
t
.
usta
.
alarm
.
event
),
DECODE_LSI_EVENT
(
sta
->
t
.
usta
.
alarm
.
event
),
DECODE_LSI_CAUSE
(
sta
->
t
.
usta
.
alarm
.
cause
));
DECODE_LSI_CAUSE
(
sta
->
t
.
usta
.
alarm
.
cause
));
...
@@ -771,7 +771,7 @@ void handle_sng_relay_alarm(Pst *pst, RyMngmt *sta)
...
@@ -771,7 +771,7 @@ void handle_sng_relay_alarm(Pst *pst, RyMngmt *sta)
switch
(
sta
->
hdr
.
elmId
.
elmnt
)
{
switch
(
sta
->
hdr
.
elmId
.
elmnt
)
{
/**************************************************************************/
/**************************************************************************/
case
(
LRY_USTA_ERR
):
/* ERROR */
case
(
LRY_USTA_ERR
):
/* ERROR */
ftdm_log
(
FTDM_LOG_
ERROR
,
"[RELAY] Error: tx procId %d: err procId %d: channel %d: seq %s: reason %s
\n
"
,
ftdm_log
(
FTDM_LOG_
WARNING
,
"[RELAY] Error: tx procId %d: err procId %d: channel %d: seq %s: reason %s
\n
"
,
sta
->
t
.
usta
.
s
.
ryErrUsta
.
sendPid
,
sta
->
t
.
usta
.
s
.
ryErrUsta
.
sendPid
,
sta
->
t
.
usta
.
s
.
ryErrUsta
.
errPid
,
sta
->
t
.
usta
.
s
.
ryErrUsta
.
errPid
,
sta
->
t
.
usta
.
s
.
ryErrUsta
.
id
,
sta
->
t
.
usta
.
s
.
ryErrUsta
.
id
,
...
@@ -795,7 +795,7 @@ void handle_sng_relay_alarm(Pst *pst, RyMngmt *sta)
...
@@ -795,7 +795,7 @@ void handle_sng_relay_alarm(Pst *pst, RyMngmt *sta)
break
;
break
;
/**************************************************************************/
/**************************************************************************/
case
(
LRY_USTA_CNG
):
/* Congestion */
case
(
LRY_USTA_CNG
):
/* Congestion */
ftdm_log
(
FTDM_LOG_
ERROR
,
"[RELAY] Congestion: tx procId %d: rem procId %d: channel %d: %s
\n
"
,
ftdm_log
(
FTDM_LOG_
WARNING
,
"[RELAY] Congestion: tx procId %d: rem procId %d: channel %d: %s
\n
"
,
sta
->
t
.
usta
.
s
.
ryCongUsta
.
sendPid
,
sta
->
t
.
usta
.
s
.
ryCongUsta
.
sendPid
,
sta
->
t
.
usta
.
s
.
ryCongUsta
.
remPid
,
sta
->
t
.
usta
.
s
.
ryCongUsta
.
remPid
,
sta
->
t
.
usta
.
s
.
ryCongUsta
.
id
,
sta
->
t
.
usta
.
s
.
ryCongUsta
.
id
,
...
@@ -813,7 +813,7 @@ void handle_sng_relay_alarm(Pst *pst, RyMngmt *sta)
...
@@ -813,7 +813,7 @@ void handle_sng_relay_alarm(Pst *pst, RyMngmt *sta)
break
;
break
;
/**************************************************************************/
/**************************************************************************/
case
(
LRY_USTA_DN
):
/* channel down */
case
(
LRY_USTA_DN
):
/* channel down */
ftdm_log
(
FTDM_LOG_
ERROR
,
"[RELAY] Channel DOWN: tx procId %d: channel %d
\n
"
,
ftdm_log
(
FTDM_LOG_
WARNING
,
"[RELAY] Channel DOWN: tx procId %d: channel %d
\n
"
,
sta
->
t
.
usta
.
s
.
ryUpUsta
.
sendPid
,
sta
->
t
.
usta
.
s
.
ryUpUsta
.
sendPid
,
sta
->
t
.
usta
.
s
.
ryUpUsta
.
id
);
sta
->
t
.
usta
.
s
.
ryUpUsta
.
id
);
...
@@ -823,7 +823,7 @@ void handle_sng_relay_alarm(Pst *pst, RyMngmt *sta)
...
@@ -823,7 +823,7 @@ void handle_sng_relay_alarm(Pst *pst, RyMngmt *sta)
break
;
break
;
/**************************************************************************/
/**************************************************************************/
case
(
LRY_USTA_TCP_CONN_FAILED
):
case
(
LRY_USTA_TCP_CONN_FAILED
):
ftdm_log
(
FTDM_LOG_
ERROR
,
"[RELAY] TCP connection failed
\n
"
);
ftdm_log
(
FTDM_LOG_
WARNING
,
"[RELAY] TCP connection failed
\n
"
);
break
;
break
;
/**************************************************************************/
/**************************************************************************/
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论