How should I go about recording analog signals from a device attached to a serial port, so I can re-send them, and can I even do this...

The purpose of this is to record all signals from the buttons on a telephone so that once I have them all I can emulate a telephone from my pc...