The solution I used once was to have two phone lines. Later I got the phone line converted to ISDN which gave me two connections at a time - one computer and one phone, or two phones on different numbers, through the same pair of wires to the exchange. ISDN might be available/possible - it depends on the phone service provider and your distance from exchange.