Total Pageviews

Sunday 30 July 2017

安装你的个人Asterisk VoIP服务器

Today, with this first post, I will be sharing with you some tips on setting up and securing your own personal Asterisk® VoIP server.

Introduction

Many people in the U.S. and around the world use Google Voice's free calling feature. Basically, Google Voice lets you make free calls to any phone in the U.S. and Canada. To apply, you need to have a U.S. phone number (for verification purposes) and also register for a free Google account. There are plenty of tutorials on the web.
To make Google Voice easier to use, several third-party applications integrate with it through the XMPP protocol. These include the OBi100Groove IPTalkatone, etc. These applications make it possible to make GV calls via WiFi or 3G, send or receive SMS via WiFi, and in the case of the OBi, can even replace one's home phone.
Unfortunately, Google had announced that all third-party app developers "must stop making unauthorized use of Google Voice to run their services and transition users by May 15, 2014" (source). As a result, providers of the above mentioned apps OBiGroove IP and Talkatone all stated that their products will stop working with GV on that date.
The solution for existing users? Set up a personal VoIP PBX server. Asterisk is a PBX software which can interoperate with multiple low-cost VoIP providers, thus giving the users many more choices. There are several pre-built software that bundles Asterisk, e.g. PBX in a FlashFreePBX Distro and AsteriskNOW. Personally I use PBX in a Flash.
As a side note, check out my tutorial on setting up your own IPsec VPN serverwith both IPsec/L2TP and Cisco IPsec.

What is PBX in a Flash?

PIAF Logo
"PBX in a Flash™ is the Lean, Mean Asterisk Machine designed to meet the needs of hobbyists as well as business users and VARs. You'll have a high-performance turnkey Asterisk PBX that's easy to upgrade with dozens of add on scripts to provide virtually any feature you can imagine. With PIAF you can choose from tons of Nerd Vittles and FreePBX® applications that install in under 15 seconds: AsteriDex, Weather Reports, News Feeds, Email by Phone, Telephone Reminders, and many more."
  - From pbxinaflash.comWard Mundy & Associates LLC (Google+).
PBX in a Flash (PIAF) is a free full-featured IP PBX server that bundles AsteriskFreePBX and other apps. You can make cheap phone calls by integrating the PBX with a low-cost VoIP provider (such as Localphone). For example, integrating with an existing Google Voice account will enable free calling (via Wi-Fi/3G) to anywhere within the U.S. and Canada.
What's even better is that in IP PBX, calls between extensions are FREE! No matter where in the world you are, as long as you have Internet access. And generally you get good sound quality, too. With a suitable codec, you can even place and receive calls on 3G or make video calls.

Getting a VPS

The first step is to get a virtual private server (VPS) with 512MB RAM or more.
DigitalOcean is the provider that I use. They call their KVM VPS "droplets", with a choice of eight locations in the U.S., Canada, Germany, Netherlands, India, U.K. and Singapore. Sign up using this link to get $10 credit for free! That's enough to run a 512MB RAM / 20GB SSD droplet for two months!
RamNode is another established provider of SSD and SSD-cached VPS. They have consistently ranked #1 in the LEB "Top Provider" polls, and feature five locations within the U.S. & Europe.

Dacentec offers quality dedicated servers at very affordable prices, with fast and friendly support. Their data center is based in North Carolina, USA.
Note: If you like this article and want to support my site, please consider signing up using my referral links above.

Setting Up Your PIAF Server


Note: This section may be out of date. For the latest developments in PBX in a Flash, see the official websitePIAF@SourceForge and Nerd Vittles.

If you decide to use DigitalOcean, I wrote up a tutorial right on this blog:
Install PBX in a Flash (PIAF) on a DigitalOcean Droplet
Alternatively, if using a VPS from another provider, first try my guide above. You can also check out these tutorials:
Incredible PBX 13 ISO: A Turnkey Asterisk 13 Server for Everyman
Incredible PBX GUI for Asterisk 13 and CentOS (or Ubuntu)
Incredible PBX GUI for Asterisk 11 and CentOS (UbuntuApps Guide)
For running PBX in a Flash at home, don't forget to set up port forwarding on your router to allow incoming VoIP connections.
I hope you enjoyed reading this article and that it can help you to set up your very own Asterisk server. Continue reading my next article for important tips on securing your Asterisk server with IPTables.
Disclaimer: I wrote this article as a hobby and I have NO affiliation with either the PBX in a Flash project or Ward Mundy & Associates LLC。
from https://blog.ls20.com/setting-up-your-personal-asterisk-voip-server/

No comments:

Post a Comment