I'm trying to make an dial-up file server program. Problem is that I don't know how to check all the possible ports for modem. Further, I would like to listen for the RING sugnal and accept the call. Is there an elegant solution for that? Any guidance would be appreciated.