The FXS Gateway acts as a bridge between analog endpoints and an IP PBX or VoIP service provider. Analog phones or fax machines connect directly to the FXS ports. These ports deliver power and dial tone to the devices. https://theomnibuzz.com/what-is-an-fxs-gateway-and-how-it-works-in-voip-communication