|
|
YOUR FEEDBACK
Did you read today's front page stories & breaking news?
SYS-CON.TV |
TOP LINKS YOU MUST CLICK ON Trends
Installing Asterisk
Part I: A step-by-step guide
By: Stephen Misel
Dec. 27, 2005 10:15 PM
Digg This!
This month, we're going to perform a basic Asterisk installation and configure two extensions. For this, we'll need the Asterisk@Home distribution, a PC, and two VoIP phones.
The PC requirements are rather minimal. My development PBX is an AMD Duron 800 with a 40 gigabyte hard drive and 512 megabytes of memory. This low-end system is an ideal test platform and would work fine in a residence or very small office with a few phones. Speaking of phones, I've selected the Grandstream Budgetone BT-101, an entry-level SIP phone. While these only support one-call presentation ("line"), they work very well with Asterisk, are inexpensive, and have good sound quality from both the handset and speakerphone. The Budgetone can be purchased for $59.95 each from The VoIP Connection, www.thevoipconnection.com/. Let's get started building our VoIP-enabled, two extension PBX out of a worthless computer, two $60 phones, and a CD downloaded from the Internet.
Installing Asterisk@Home Put the Asterisk@Home CD into the computer, power it up, and press enter at the boot prompt. This starts the CentOS installation. When the installation is complete, the CD will eject. The computer will reboot and automatically compile Asterisk from source. Feel free to leave the system unattended, as this portion of the installation process is entirely automated, may take some time, and is not particularly entertaining to watch. When the installation is complete, a login prompt will appear on the console. Type root and press enter. The default password is password. Once you're logged in, you should see:
Welcome to Asterisk@Home Your URL will probably be different. If your URL is blank, there's a problem with your network adapter or DHCP is not enabled on your LAN. If this is the case, set up DHCP or type netconfig, assign the address manually, and reboot.
While we're logged in, we should change the root password. To do this, type "passwd" and enter the new password twice: Now that the password has been changed and we know the IP address of the Asterisk machine, log out by typing "logout".
Configuring the Phones If a phone didn't get IP addresses from DHCP, it will set a default address of 192.168.0.160. Pick up the receiver and hang up. This will put the phone back to a ready state. To set the address:
The phone will display the Advanced Settings. Enter the settings shown in Figure 1. Make sure your SIP Server is the IP address of the Asterisk machine. Set the password to "testphone1". We'll also set the SIP User ID and Authenticate ID to 200. Scroll down and set "Register Expiration" to five minutes as in Figure 2. Set the Voice Mail UserID to *97 (see Figure 3): ...and "Send DTMF" to RTP/RFC 2833 (see Figure 4). To save, scroll to the bottom of the page and click "Update" (see Figure 5). Changes will take effect after the next reboot. You can either cycle power to the phone or click "Reboot" after the configuration is saved. Repeat these steps for the second phone, making sure to set the User and Authenticate ID to "201" and the password to "testphone2" (see Figure 6).
Configuring Asterisk
To tell Asterisk about our two new phones, click on Setup, then click Extensions. Since our Budgetone phones are SIP devices, select SIP from the Device Technology Menu. We're setting up the first phone, extension 200 (see Figure 9). The password or "secret" matches the password in the phone of "testphone1." We've set the Display Name to "Test Phone 1" and a voicemail password of 12345. If you'd like Asterisk to send e-mail when you have new messages, enter the e-mail address. To have Asterisk attach the message to the e-mail, enable "e-mail attachment." When complete, click "Add Extension." A red banner appears as in Figure 10 ...click the banner. Set up the second phone, using extension 201 and password/secret as testphone2. Both phones should have a dial tone. If they don't, power cycle them.
Testing
Fun The weather forecast uses the Festival Text-To-Speech engine, which is installed as part of Asterisk@Home. If you'd like to change the forecast city, I have a guide on my blog: http://steve.linuxworld.com/. Next month, we'll connect our Asterisk machine to the public telephone network with a voice-over-IP provider, get a toll-free number, and configure the Digital Assistant to answer our incoming calls. Resources
LATEST LINUX STORIES
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS SUBSCRIBE TO OUR RSS FEEDS & GET YOUR SYS-CON NEWS LIVE!
|
SYS-CON FEATURED WHITEPAPERS MOST READ THIS WEEK |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||