I'd love to run Asterisk on my Raspberry Pi. Does anyone know how I could connect to the telephone network?
Obviously, PCI based cards aren't going to work.
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It only takes a minute to sign up.Sign up to join this community
You probably want a device like this one:
This is a USB to FXO device that runs right from bus power and consumes only 200ma.
I've used them before. They work well with most linux distros, are about the same size as your PI, and are cheaper than most of the ethernet-fxo bridges you will find. The last time I bought one, I think it was about $130.
Assuming you can get Asterisk rolling, I'd probably go for one of the ethernet connected FXO boxes. Many companies make them. Here's an example:
Click image to find out more about uElastix.
After you have set it up the way you love you can consider one of these amazing devices from linksys/cisco. (That wont cost you hundreds and hundreds!)
A really really cheap solution to enable your existing home phones to use VoiP instead- If you want to recieve phone calls on your existing number, you can buy a cheap DID for voip and then redirect all incoming land line calls to your VoIP DID. Sorted
This is a step higher and can act as a repalcement router but does not have to. It jsut has the facility. This model allows you to use 2 VoiP lines/channels and connect 2 phones or 1 phone and 1 fax or 2FAX's. What ever you fancy. Again you can redirect your land line to your Voip DID
I currently use this one at home because it allows me to connect my existing land line and set up dial routes inside the SPA3102 to select if it should use landline, like toll free numbers(because allot of VoIP and mobile providers charge a small amount) or VoIP
I searched allot for various products and all the ones mentioned fit my budget of CHEAP AND CHEERFUL! Cisco offer newer SPA's that are faster, have more FXO's and other gadets
I do not work/am not ascociated with any of those companies. I use the SPA3102 at home and I run a production server using Elastix(not Pi- A proper i5 with 8GB ram). I tried FreePBX distro and clean Asterisk- They are really difficult to customize things if you are a bit of newbie. Elastix is a nice complete package that is easy to use.
Be aware that if you are going to use and Cisco products in the UK- Buy a BT to RJ11, and a RJ11 to BT converters(even with the -UK version!). Otherwise you will scratch your head as to why there is no dial tone! Arrrrrr.
You cannot jsut connect PSTN to the Raspberry and hope that Asterisk will translate the call. Connecting PSTN to any uncertified device in most countries in the world is ILLEGAL! Tampering with TELCO phone lines can cause injury (because the TELCO line has a different impedance than you ground at home- this can cause you 110/220v shock!) and if you damage their systems because of improper use the fine is in thousands and even jail!
Just buy a cheap and cheerful FXO/PSTN gateway and run Asterisk on the Pi (it can handle a few simultaneous calls on 1.8 without transcoding) - Do not try to reinvent the wheel!
None of the above USB to FXO devices are known for have drivers that compile in ARM architectures. It's well know that Sangoma has always open sourced his drivers but I'm not sure if is the case for this device, anyway you should ask to Sangoma's support team before you buy one of this ones to use with your RPi.
Asterisk is able to compile and work in ARM, actually, some years ago, the very first Xorcom Appliance used to run on ARM with a 6 FXO and 2 FXS Astribank. So there are chances that this devices could work as they used if someone still maintain the code.
Anyway I'm not sure the RPi could handle more than one call so spending money on a 6FXO/2FXS device for just one call, not sure it's worth.
I really think the best option is a SIP to PSTN gateway.
search for a linksys spa3102 they are cheap and have one fxo (to pbx or tel.line) and a fxs (regular phone). there are hundred of webs tellíng you how to configure asterist and use both. Working with bigger FXOs or FXSs are very similar and will let you attend your home calls witht or without the pi on. hope this helps
setup yourself with a free sip2sip.info account and give me a call at
Why don't you try just this?
RasPi is for hacking!!
Amfeltec created a USB FXO and FXS solutions: http://amfeltec.com/news-releases/