What PBX are you using..? All the ones I've ever used switch each exchange line directly to a designated extension in case of mains failure. My current one has 4 lines and 12 extensions, the latter are numbered from
221 upwards. In the event of a power failure the first exchange line gets connected to extension 221, the 2nd to 222 and so on.Ivor