That is a train order signal or train order board. When an approaching train sees red, they must stop and receive orders. When an approaching train sees white, they are cleared through. I expect that clear through would mostly be for a scheduled train
.