freetdm: ignore unknown wanpipe alarms
This commit is contained in:
parent
388430318c
commit
5a2042fcb6
|
@ -991,10 +991,9 @@ static FIO_GET_ALARMS_FUNCTION(wanpipe_get_alarms)
|
||||||
alarms &= ~WAN_TE_BIT_ALARM_RAI;
|
alarms &= ~WAN_TE_BIT_ALARM_RAI;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* if we still have alarms that we did not map, set the general alarm */
|
|
||||||
if (alarms) {
|
if (alarms) {
|
||||||
|
/* FIXME: investigate what else does the driver report */
|
||||||
ftdm_log(FTDM_LOG_DEBUG, "Unmapped wanpipe alarms: %d\n", alarms);
|
ftdm_log(FTDM_LOG_DEBUG, "Unmapped wanpipe alarms: %d\n", alarms);
|
||||||
ftdmchan->alarm_flags |= FTDM_ALARM_GENERAL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return FTDM_SUCCESS;
|
return FTDM_SUCCESS;
|
||||||
|
|
Loading…
Reference in New Issue