Using a modem as your FXO or any other cheap alternatives

I want to work with asterisk, could I use a IP line? or do i need analog lines, any info on where to start from.

You can try getting an X100P or an X100P clone on eBay. You can also use SIP on asterisk.