Slashdot Mirror


Asterisk and Linux to Build Secure VoIP Connection

Beave writes "Using Linux and the Asterisk PBX, it is possible to build a secure, cost effective VoIP (and traditional PSTN) PBX solutions. This article shows you how to take advantage of various hardware, software and tricks to accomplish this goal within a limited budget."

21 of 140 comments (clear)

  1. What will the Romans do? by Anonymous Coward · · Score: 5, Funny
    Oh wait, that was Asterix and Obelix.

    s/Romans/phone comanies/

  2. Shows you how? by Dancin_Santa · · Score: 5, Insightful

    More like tells you in the most general of terms what they implemented.

    Obviously what is going to be the real killer app is VoIP in a wireless setup. Instead of having a wall jack for your desk phone, it just hooks into the wireless mesh seamlessly.

    I'm sure this has already been done. I'd love to see an article about it.

    1. Re:Shows you how? by Tony+Hoyle · · Score: 4, Informative

      It's possible, but the available wireless VOIP handsets are 11b only and don't support WPA (both are showstoppers for me).

      In the future I'm sure they'll become available.

      I use my asterisk server to record incoming/outgoing numbers (the local telco wants paying for this service, although I have to pay them anyway for the callerid so I'm not sure I'm saving much), and to route calls over the cheapest provider (always analogue, as VOIP providers in this country are still 2-3 times more expensive than analogue ones) - which has saved me a fortune.

    2. Re:Shows you how? by Student_Tech · · Score: 3, Informative

      Well you could get a PDA with a VOIP app running on it. For example, the Zaurus can have either KPhone/Pi or tkcPhone(demo version on their website). Both of those apps are SIP compatible.

      So you get a PDA and a WiFi conectivity and there you go.

      Probably not the best or most ideal solution, but it is something that does exist.

    3. Re:Shows you how? by itwerx · · Score: 4, Interesting

      although I have to pay them anyway for the callerid

      You'll still get it even if you don't pay for it because it's a PITA to truly turn it off in the switch and the telcos never bother. :)
      Call 'em up, ask 'em what the caller-id charge is for, when they explain tell 'em you don't need it and please take it off and voila' - you'll still have it without having to pay...

  3. This is cool... by dealsites · · Score: 5, Interesting

    Be sure to check out this article on a sweet Asterisk implementation.
    --
    Watch this page for Black Friday Information!

  4. Useful Asterisk Resources by TheMysteriousFuture · · Score: 5, Informative
    Useful Asterisk Links:

    The Asterisk Wiki
    Note: the wiki search is useless. Search with google instead, use "searchterm site:voip-info.org" (without quotes).

    The Asterisk Documentation Project

    The Asterisk Mailing Lists
    Note: to search the lists use google again. "searchterm site:lists.digium.com" (without quotes)" in google.

    the #asterisk chat room on irc.freenode.org. Drop by and say hello.
    Note that due to problems with massive spambot attacks regisitration is required to join the channel. Simply type
    /msg nickserv register mypassword
    /join #asterisk

    The next time you join you will need to type
    /msg nickserv identify mypassword

    --
    .sig
    1. Re:Useful Asterisk Resources by fiji · · Score: 3, Informative

      Also useful for checking your connection to see if it can handle VoIP: testyourvoip.com (the site has had an overhaul... some interesting new features)

      -ben

  5. Whoa! by cmcguffin · · Score: 3, Funny

    I had no idea Asterix was a linux geek!

  6. Our solution by frankthechicken · · Score: 5, Interesting

    At my office we all have our own x-boxes, and using the X-box live service, we are able to happily communicate with each other at a very competetive pricing structure.

    The solution offers a simple text messaging scheme, and conference calling facillities.

    I can fully recommend this solution to any businesses looking for a cost effective VoIP.

  7. Re:Well, Skype just works. by joormotha · · Score: 4, Interesting

    It is also loaded with spyware. Sharman Networks (creators of Kazaa) wrote this software. Use at your own risk.

  8. A view from the industry by jaymzter · · Score: 5, Insightful

    From an enterprise viewpoint, that is a very large service base, asterisk is dead in the water until it can match the simplicity of the interfaces found on proprietary systems. This isn't a knock on asterisk as a technology solution, but the telcom admin of a large corporation isn't going to want to look at a text file to figure out his dialplan or use some arcane interface when on a more mature system he can use a simple command like 'display dialplan'.
    I don't doubt many people have used asterisk as a voice solution for some companies, but not for any major companies and certainly not for any huge call centers. RTFA, a CIO would sh*t if you showed him snippets from some text file. Not to mention the questionable logic of running your voice system on a white box computer. It may be fine and dandy when e-mail is down for an hour, but five minutes without phones is a lifetime for any serious company. 5 9's is not a joke in the voice world and actually a rational expectation.
    In other words, I support asterisk simply because I love open source, but don't kid yourself, right now it's just a hobby app (as seen from the enterprise)

    --
    If thou see a fair woman pay court to her, for thus thou wilt obtain love
    1. Re:A view from the industry by LittleLebowskiUrbanA · · Score: 4, Informative

      " the simplicity of the interfaces found on proprietary systems"

      Apparently you've never used Avaya IP Office. I YEARN for the simplicity of text files. 3 freaking different GUIs to manage it and they're interconnected but you have to change things using at least 2 of them in many places.

    2. Re:A view from the industry by jaymzter · · Score: 3, Informative

      Ok, I'll take next! 'change dialplan', versus what exactly in asterisk? No need to respond, I've read their convoluted explanation of their concept of a dialplan.
      All that aside however, this isn't about knocking asterisk! I compared it to a Large Enterprise, and stated the obvious, that's all

      --
      If thou see a fair woman pay court to her, for thus thou wilt obtain love
  9. Is Asterisk Ready for Home Users? by PetoskeyGuy · · Score: 4, Interesting

    I have two incoming phone lines here. Is a PBX like Asterisk only cost-effective for office environments where they are paying thousands per month for bandwidth, or can this also be used to replace my current 2 line POTS setup?

    I have some spare computers, and would love the add voice mail, caller id, etc. Just wondering about keeping my existing phone numbers and monthly costs. When would I break even?

  10. Security wasn't part of Asterisk - it was OpenVPN by billstewart · · Score: 4, Informative
    The article said that they did't get their security from Asterisk itself - they added it on by using OpenVPN to build encrypted UDP tunnels and push the Asterisk IAX protocol through them. (No apparent detail on how to configure it.) Some of the Asterisk mailing lists talk about adding encryption to the transport protocols, but as near as I can tell from a few Google hits, that's really all a Wishlist for Somebody Else to implement rather than part of the core protocols.

    That's really too bad - encrypting VOIP causes extemely annoying overhead problems, because the voice data packets are really small (they're not very big before compressing them, and then they're even smaller), so the minimum overhead for just doing the RTP+UDP+IP headers is several times the size of the voice traffic they carry, and IPSEC adds another two layers of headers, or SSL adds about three, and pretty soon that cute little elegant 8kbps compressed voice stream is looking like 40-80kbps and won't fit on your modem. SIP can use the SRTP protocol as a modification of RTP, so to the extent that anybody implements it, it's basically doing then encryption along with a layer you needed anyway, so it doesn't add much overhead. IAX doesn't appear to have this (which is especially frustrating because the IAX2 trunking protocol makes multiple simultaneous connections much more efficient, though I suppose if you've already done that, the extra overhead of IPSEC or OpenVPN may not bother you as much.)

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
  11. Re:Well, Skype just works. by finkployd · · Score: 3, Interesting

    Everything I have read and everyone I have talked to said there is no spyware in skype (as they claim). It is easy to check, spyware would communicate with the mothership somehow, just run a packet sniffer.

    What leads you to believe it has spyware? Because the Kazaa guys wrote it? Any actual evidence?

    Finkployd

  12. limited budget indeed by SuperBanana · · Score: 4, Insightful

    I purchased three Intel white-box computers for $800 each containing 2.6Ghz processors 512MB ram and 40 GB hard drives

    Anyone who recommends greybox PCs with non-raid storage for a financial institution...even a small one with only three branches...is not thinking very clearly. If it's for a business-critical application like the phone system, they're categorically insane.

    Folks- there's a reason those telco boxes cost lots of dough. They Just Work if they're left alone (in 7-8 years of working with telco equipment, 99% of the problems have been telco line provider problems; hardware failures are extremely rare). There are books upon books written with guidelines for what is considered telco grade, but the common theme is "keeps going, and if it breaks, it does so gracefully".

    $2500 can, even for a small bank, be PENNIES ON THE DOLLAR when the system goes down for even a few hours. If you've got a Lucent phone system and a support contract, they find stuff before you do, and no matter what time of day- there's a tech on your doorstep in an hour if they can't remote in via the system's POTS admin modem.

    You want a cheap phone system, you get what you pay for. It's remarkably irresponsible for the authors of that article to advocate Asterisk without mentioning that reliability and support pale in comparison to 'real' telco equipment.

  13. Re:Consumer broadband? by DA-MAN · · Score: 3, Interesting

    They connected their Asterisk PBX to the PSTN through a $500 card to a T1. How can I connect my Asterisk to my cablemodem (3/0.5Mbps)? What does it connect to over the WAN to complete calls to the global PSTN? Is it 100% reliable, with a complete footprint in urban areas, and failover to the rest of the POTS phones in the world?

    Simple, use ethernet and get a voip provider instead of using a PSTN T1. I currently use http://connect.voicepulse.com/, and that works great for me. Pretty cool, because you can have multiple incoming calls over one connection.

    --
    Can I get an eye poke?
    Dog House Forum
  14. Re:Security wasn't part of Asterisk - it was OpenV by cduffy · · Score: 3, Informative

    ...so the minimum overhead for just doing the RTP+UDP+IP headers is several times the size of the voice traffic they carry, and IPSEC adds another two layers of headers, or SSL adds about three, and pretty soon that cute little elegant 8kbps compressed voice stream is looking like 40-80kbps and won't fit on your modem.

    OpenVPN isn't IPsec, and while it uses the OpenSSL library for all the crypto "heavy lifting", it has its own over-the-wire protocol and is much more efficient than the traditional SSL way of doing things.

    I use OpenVPN at work, and while I haven't done specific measurements, we've generally found it to be very efficient (not to mention easy-to-use and hassle-free compared to its IPsec-based competitors). Because in UDP mode it doesn't try to guarantee reliability, it also doesn't break protocols (like those used for VoIP data) that expect late packets to just be dropped.

    So, in short, I'm not at all convinced that the use of OpenVPN is at all unfortunate or problematic here.

  15. Trans-Atlantic VoIP by Evanrude · · Score: 3, Insightful

    A friend of mine, who works for a UK telecom and my company, Axigent, have setup a connection between our two asterisk systems that has proven fairly reliable and "secure". I would say with everything we've gone through to make the connection functional, the author of this column left out a lot of the details as far as full implementation of an Asterisk PBX. A helpful site, or at least one of the more helpful sites I've come across is the wiki at www.voip-info.org, which the author neglected to reference in his article. Knowing someone that works at a Telecom is a plus, I think the cost from both ends as far as equipment has been fairly minimal and the return on the time invested as far as learning what VoIP is capable of has been huge. All of the calls that are made back and forth have been clear. It's pretty impressive to call overseas at no charge.

    --

    ~.Evanrude