Asterisk VoIP running on the Raspberry Pi

After many attempts, I finally have Asterisk running on my Raspberry Pi. I have two SIP trunks to make and receive external calls. Call quality is pretty standard for VoIP. There's more than enough processing power and RAM on this little board to cope with a few simultaneous phone calls. It beats running a PC full-time.

I've started a blog to guide others through the installation, because I've found limited information on how to get Asterisk running on the Pi. If you have technical knowledge, maybe not so tough. So if you're interested, take a look at http://pipbx.blogspot.ca/

Posted Jun 3, 2012, 3:05 AM UTC

3629
nikomo•

I can't even get Asterisk to run on x86, and you've got the thing running on a Pi?

Sigh, maybe I should play around with it this week.

10
WellardOP•

Don't worry, took me several attempts! I think I had my Pi recompile the code at least 5 times before a successful build.

2
nowonmai•

There are packages for Asterisk in Debian Squeeze ARMEL. Do they not work? I was planning on replacing my power hungry x86 Asterisk box with my pi. Good to know someone has already been successful. What codecs are you using?

1
strutswell•

This is really cool. You should consider posting to r/asterisk and perhaps the various mailing lists on the subject.

5
pylori•

This is really cool, I was wondering when someone was going to get around to turning it into a VoIP gateway, can't wait to try it out when my Pi arrives.

3
catch23•

Why not run freeswitch instead? freeswitch does essentially the same stuff as asterisk, but consumes much fewer resources.

3
WellardOP•

I'm using Asterisk as I'm already familiar with it. However, I'm willing to take on suggestions. I have looked at the Freeswitch as suggested, it appears the installation guide and it does already have instructions for ARM processors. I'll try to tackle this one soon! :-)

  • edit: fixed typo
1
catch23•

Maybe if you get around to cross-compiling it specifically for your rpi, you could have it downloadable for us who are still waiting for ours in the mail :-)

2
WellardOP•

I'll see what I can do. I'm planning on creating a Asterisk Debian package specifically for the Pi, but when I look into Freeswitch, I'll most likely do the same.

1
TapirMonkey•

Can you give any more pointers about the hardware do you need to set this up

2
WellardOP•

On my computers, I use Softphones, such as Ekiga, X-Lite, etc. My main phone uses a Linksys PAP2T to convert from VoIP to regular POTS.

2
catch23•

All you need is a computer. You can get softphones for your computer, or if you want to get fancy, you can get an IP phone for your desk.

I connect freeswitch (equivalent to asterisk) to my android phone so that it essentially uses my data plan to make calls (I get more minutes cheaper this way).

1
AgoristTeen1994•

This IS pretty cool, do you think that along with some other equpment, and software you might be able to get OpenBTS, and GNURadio to get a local GSM network running?

1
WellardOP•

I may be entirely possible, providing the hardware uses USB and if the software can be compiled for ARM. Unfortunately I don't have the hardware to try this out myself.

1
AgoristTeen1994•

That's be pretty awesome!

1
sparqz•

From what I've seen so far such hardware would be very expensive, are there any super cheap alternatives that would be compatible with a regular cellphone and run on usb?

1
nowonmai•

The USRP and associated RF frontend would set you back ~$1K. The R_Pi a further ~$50, and a decent colinear antenna and co-ax another couple of hundred. That's very cheap for a GSM base-station.

1
TeeRoyAL•

This is really pretty cool.

1
noreallyimthepope•

Awesome. When the boards become generally available, I might by a few to send to my geographically disparate family.

1
neuromonkey•

Don't hold your breath.

1
noreallyimthepope•

I just noticed my lack of attention to spelling in m previous post and would like to apologize.

I meant, of course, buy.

2
neuromonkey•

Don't let it happen again, or we'll kick you off the Internets.

1
Dark-Aries•

I was already wondering if it was possible to create a VOIP phone with this thing. Would actually be really useful to have this runnning on batteries or something instead of needing a laptop for a phone.

1
neuromonkey•

For those of us who have really simple VoIP needs, an old Sipura SP-2000 does the trick. Similar size, and has two POTS phone jacks.

But very cool to know that the Pi will do Asterisk.

1
elitemrpShipped May 23, 2012•

Get it to support ~200 users/96 trunks and I can use my RPi at work to replace our current Asterisk server. :)

1
FredL2•

A lot of props to you to actually have the patience to configure Asterisk. Your wisdom an patience far outweighs mine.

1
techsnapp•

Wow, this is really great news. I have been using asterisk / freepbx for about a year and a half. I would have never thought the pi would be able to run asterisk! I'm interested it freeswitch so if anyone wants to make a tutorial on this, feel free.

1
Samizdat_Press•

Can you elaborate on what Voip is real quick? Does this allow you to make phone calls via the internet or something? If you could expand on what this does I would really appreciate it friend. Noobie Mcn00berson over here.

0
ExOAte•

VoIP stands for 'Voice over IP'. Basically you can compare it to any other voicechat application out there. Only this can most likely run over a real telecom provider's network to work like a real phoneline, only online.

1