The batteries and phone lines were one system at -48v with power supplies converting AC power to DC while grid / generator is up.
The batteries are floated at the line voltage nothing was really charging or discharging and there was no switchover.
This is similar to your cars 12v dc power system such the when the car is running the alternator is providing DC power and the batteries float doing nothing except buffering large fluctuations stabilizing voltage.