The FXS gateway (Foreign Exchange Subscriber Gateway) is one of the hardware devices that is used to connect the traditional Analog telecom system, like telephones and fax machines, to an IP-based VoIP stable network. https://www.akom.in/blog/what-is-an-fxs-gateway