|
@@ -76,9 +76,8 @@ func AlarmStatus(exten string, status string) {
|
|
|
}
|
|
}
|
|
|
//check if actived
|
|
//check if actived
|
|
|
lfshook.NewLogger().Logger.Infof("===AlarmStatus=ext:%s===carr:%x==========pos:%x=========status:%x", exten, protocol.Data[0], protocol.Data[1], protocol.Data[2])
|
|
lfshook.NewLogger().Logger.Infof("===AlarmStatus=ext:%s===carr:%x==========pos:%x=========status:%x", exten, protocol.Data[0], protocol.Data[1], protocol.Data[2])
|
|
|
- if active.Actived && active.CabNum == "1" {
|
|
|
|
|
|
|
+ if active.Actived {
|
|
|
SendToStc(socket.Conn, encoded)
|
|
SendToStc(socket.Conn, encoded)
|
|
|
- } else if active.Actived && active.CabNum == "8" {
|
|
|
|
|
SendToStc(socket.Conn8, encoded)
|
|
SendToStc(socket.Conn8, encoded)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -143,9 +142,8 @@ func PaStatus(src string, patype string, operation string) {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if active.Actived && active.CabNum == "1" {
|
|
|
|
|
|
|
+ if active.Actived {
|
|
|
SendToStc(socket.Conn, encoded)
|
|
SendToStc(socket.Conn, encoded)
|
|
|
- } else if active.Actived && active.CabNum == "8" {
|
|
|
|
|
SendToStc(socket.Conn8, encoded)
|
|
SendToStc(socket.Conn8, encoded)
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|