FXS stands Foreign Exchange Station that converts the signal analog to digital and FXO Foreign Exchange Office that convert the signal digital to analog.
To connect analog phone with computer we need an FXS gateway in which all analog lines will be insert & it will be configure with the unified communication system over the local network. On the other side we need an FXO gateway to be configuring to receive the signal passing by FXS Gateway via unified communication system which helps to make & answer the calls through the analog phone.