SIP Switch gateway

I require a switch to connect to a carrier.

Can a linux box be put togeather with this software to act as a switch to the carrier?

Do you need a special piece of hardware to make this work also? Soem kind of

Wheres the docs explaining this - I really have to get a system running. We have a carrier in place who has a hosted billing system we will use - just need to get calls there,