Serial port connection via modem line

Hi, I need to configure DIGI PortServer TS MEI Modem Series to connect to a serial port through a modem connection. I would call a line connected to the modem and configure a router connected to port 2, thanks.