How to get all my music from my iPhone into iTunes?

Ok, I have 425 songs on my iPhone that I downloaded from CD's & purchases at my moms house. I'm now at my dads house, and I have home sharing turned on, but it won't transfer the songs I have from CD's in to the iTunes account. My iPhone's plugged into the computer, and I've done the transfer purchases, which has worked to get purchases I've made directly from iTunes on to the computer but not the other ones… If I click on "On This iPhone" all my current songs are there. If I hit sync, it doesn't sync all those songs into my current library. How do I get it to do that without losing any songs?

Try iStonsoft iPhone to computer transfer first,

use that app to copy music from iPhone to computer, then sycn to your iTunes, easy!

Dwonload 4easysoft iPhone Manager, it supports to transfer files between iPhone and computer or iTunes.