mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-29 22:54:18 +00:00
freetdm: fix dchan libpri
This commit is contained in:
1 parent
d4f93843a1
commit
de2a4ea100
4 files changed
+7
-10
No files matched your search
@@ -950,23 +950,15 @@ static FIO_GET_ALARMS_FUNCTION(wanpipe_get_alarms)
|
||||
}
|
||||
|
||||
if (alarms & WAN_TE_BIT_ALARM_AIS) {
|
||||
ftdmchan->alarm_flags |= FTDM_ALARM_AIS;
|
||||
ftdmchan->alarm_flags |= FTDM_ALARM_BLUE;
|
||||
alarms &= ~WAN_TE_BIT_ALARM_AIS;
|
||||
}
|
||||
|
||||
if (alarms & WAN_TE_BIT_ALARM_RAI) {
|
||||
ftdmchan->alarm_flags |= FTDM_ALARM_RAI;
|
||||
ftdmchan->alarm_flags |= FTDM_ALARM_YELLOW;
|
||||
alarms &= ~WAN_TE_BIT_ALARM_RAI;
|
||||
}
|
||||
|
||||
/* still missing to map:
|
||||
* FTDM_ALARM_RECOVER
|
||||
* FTDM_ALARM_LOOPBACK
|
||||
* FTDM_ALARM_NOTOPEN
|
||||
* */
|
||||
|
||||
/* if we still have alarms that we did not map, set the general alarm */
|
||||
if (alarms) {
|
||||
ftdm_log(FTDM_LOG_DEBUG, "Unmapped wanpipe alarms: %d\n", alarms);
|
||||
|
||||
Reference in new issue
Block a user