Also see Net::SIP, which should have large parts of a SIP client and server.
In reply to Re^3: Socket programming by Corion in thread Socket programming by Anonymous Monk