Intercept phone lines with pc?

hey i was just wondering is there a way or program that makes it so that i can make my phone not ring and make it go to my computer instead? i would apreachate this because ive seen it done before im just not sure how