I recently did this with some success. The first thing you have to do is to find a jack where both lines can be accessed. Then, figure out which line is the working line and hook those two wires to the phone jack. It will be the red and green pair or the black and yellow pair.
Here is link that will be helpful: