freetdm: Fix ss7 logger broken compilation
This commit is contained in:
parent
3e39945d73
commit
15fa227699
|
@ -3,11 +3,11 @@
|
||||||
|
|
||||||
# Must change all of the below together
|
# Must change all of the below together
|
||||||
# For a release, set revision for that tagged release as well and uncomment
|
# For a release, set revision for that tagged release as well and uncomment
|
||||||
AC_INIT([freeswitch], [1.2-rc2], BUG-REPORT-ADDRESS)
|
AC_INIT([freeswitch], [4.3.0], BUG-REPORT-ADDRESS)
|
||||||
AC_SUBST(SWITCH_VERSION_MAJOR, [1])
|
AC_SUBST(SWITCH_VERSION_MAJOR, [4])
|
||||||
AC_SUBST(SWITCH_VERSION_MINOR, [2])
|
AC_SUBST(SWITCH_VERSION_MINOR, [3])
|
||||||
AC_SUBST(SWITCH_VERSION_MICRO, [0])
|
AC_SUBST(SWITCH_VERSION_MICRO, [0])
|
||||||
AC_SUBST(SWITCH_VERSION_REVISION, [-rc2])
|
AC_SUBST(SWITCH_VERSION_REVISION, [3e39945d73bc55c9bae492161e968bed239a4f4f])
|
||||||
|
|
||||||
AC_CONFIG_FILES([src/include/switch_version.h.in:src/include/switch_version.h.template])
|
AC_CONFIG_FILES([src/include/switch_version.h.in:src/include/switch_version.h.template])
|
||||||
AC_CONFIG_FILES([.version:.version.in])
|
AC_CONFIG_FILES([.version:.version.in])
|
||||||
|
|
|
@ -114,7 +114,7 @@ void handle_sng_mtp2_alarm(Pst *pst, SdMngmt *sta)
|
||||||
{
|
{
|
||||||
char buf[50];
|
char buf[50];
|
||||||
int x = 1;
|
int x = 1;
|
||||||
int log_level = FTDM_LOG_DEBUG;
|
int log_level = FTDM_LOG_LEVEL_DEBUG;
|
||||||
|
|
||||||
memset(buf, '\0', sizeof(buf));
|
memset(buf, '\0', sizeof(buf));
|
||||||
|
|
||||||
|
@ -159,22 +159,22 @@ void handle_sng_mtp2_alarm(Pst *pst, SdMngmt *sta)
|
||||||
break;
|
break;
|
||||||
case (LCM_CAUSE_UNKNOWN):
|
case (LCM_CAUSE_UNKNOWN):
|
||||||
default:
|
default:
|
||||||
{
|
{
|
||||||
if((LSD_EVENT_ALIGN_LOST == sta->t.usta.alarm.event) ||
|
if ((LSD_EVENT_ALIGN_LOST == sta->t.usta.alarm.event) ||
|
||||||
(LSD_EVENT_PROT_ST_DN == sta->t.usta.alarm.event)){
|
(LSD_EVENT_PROT_ST_DN == sta->t.usta.alarm.event)) {
|
||||||
log_level = FTDM_LOG_ERROR;
|
log_level = FTDM_LOG_LEVEL_ERROR;
|
||||||
}else if((LSD_EVENT_LINK_ALIGNED == sta->t.usta.alarm.event) ||
|
} else if ((LSD_EVENT_LINK_ALIGNED == sta->t.usta.alarm.event) ||
|
||||||
( LSD_EVENT_PROT_ST_UP == sta->t.usta.alarm.event)){
|
(LSD_EVENT_PROT_ST_UP == sta->t.usta.alarm.event)){
|
||||||
log_level = FTDM_LOG_DEBUG;
|
log_level = FTDM_LOG_LEVEL_DEBUG;
|
||||||
}else {
|
} else {
|
||||||
log_level = FTDM_LOG_WARNING;
|
log_level = FTDM_LOG_LEVEL_WARNING;
|
||||||
}
|
}
|
||||||
ftdm_log(log_level,"[MTP2]%s cause:%s event:%s\n",
|
ftdm_log(FTDM_PRE, log_level,"[MTP2]%s cause:%s event:%s\n",
|
||||||
buf,
|
buf,
|
||||||
DECODE_LCM_CAUSE(sta->t.usta.alarm.cause),
|
DECODE_LCM_CAUSE(sta->t.usta.alarm.cause),
|
||||||
DECODE_LSD_EVENT(sta->t.usta.alarm.event));
|
DECODE_LSD_EVENT(sta->t.usta.alarm.event));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
/******************************************************************/
|
/******************************************************************/
|
||||||
} /* switch (sta->t.usta.alarm.cause) */
|
} /* switch (sta->t.usta.alarm.cause) */
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue