asteriskathome_handbook.pdf

(326 KB) Pobierz
Version: 1.6
Date: 08/23/05
1 Introduction
2 Installation
2.1 Hardware Requirements
2.2 Install from ISO
2.3 Install to an existing CentOS 3.5 system
3 Configuration
3.1 Quick start
3.1.1 Set an IP address for your Asterisk@Home box
3.1.2 Configure an extension
3.1.3 Configure a trunk for outbound and inbound calls
3.1.4 Configure Outbound Routing
3.1.5 Configuring Incoming Calls
3.2 PSTN interface cards
3.2.1 FXO Cards
3.2.1.1 Digium Wildcard X100P OEM FXO PCI Card
3.2.2 FXS Cards
3.2.2.1 Digium TDM400P FXO/FXS Card
3.2.3 T1/PRI Cards
3.3 VOIP Service Providers
3.3.1 Free World Dialup (FWD)
3.3.2 VoicePulse
3.4 Additional feature not installed by default
3.4.1 FAX to E-mail
4 Phones
4.1 Soft phones
4.1.1 X-Ten
4.1.2 sipXphone
4.2 Hard phones
4.2.1 Cisco 7960/7940
4.2.1.1 Setting up a Cisco phone step by step
4.2.2 Polycom
5 Configuring and using Asterisk@Home features
5.1 Conferencing
5.1.1 External access to conferences
5.2 AMP (Asterisk Management Portal)
5.3 DHCP server
5.4 Flash Operator Panel
1 of 21
5.5 FTP server (vsftpd)
5.6 Cisco XML Services
5.7 Music On Hold (mpg123)
5.8 Fax support (SpanDSP)
5.9 xPL
5.10 Sugar CRM
6 Asterisk@Home add-ons
6.1 Click-to-Dial using Microsoft Outlook and AstTapi
6.2 H.323 add-on
6.3 Webmin - web based Linux management
7 Non-standard Hardware
7.1 VIA EPIA 800 mhz board (586 board)
8 Useful Info for Asterisk@Home
8.1 Feature Codes - List
1 Introduction
Asterisk@Home was created to make installing Asterisk easy. Experimenting with Asterisk
should be fun and not take hours or days to set up.
2 Installation
2.1 Hardware Requirements
The faster the system you use to run Asterisk the more simultaneous calls it will be able to
handle a 500MHz PIII with 128 Megs of RAM should easily meet the needs of the average
home use.
2.2 Install from ISO
Download the latest ISO from
http://asteriskathome.sourceforge.net
and burn it to a CD
Insert the newly created Asterisk CD into the CD ROM drive of the system on which you
want to install Asterisk@Home. Reboot the “soon to be” Asterisk system and press Enter
when prompted.
Warning
This will erase all data on the hard drive of the
PC!!!
After Linux has loaded, the CD will eject. Remove the CD from the system and wait for the
2 of 21
system to reboot. Booting the system might take a while, depending on the speed of your
computer. It is necessary for the system to build Asterisk from source, so be patient.
Once this process is complete, log in to your new Asterisk@Home system with the following
username and password:
(userUser: root, password: password)
Caution
Change your root password immediately by typing
passwd
as this minimizes the
chance of your
Asterisk@Home system being hacked!!
2.3 Install to an existing CentOS 3.5 system
If you have problems with the ISO you can install onto an existing CentOS server.
Download CentOS 3.5 ISOs from the
CentOS Mirrors
Make a directory to install from, put the install file there, and install.
mkdir /var/aah_load
cp asteriskathome-1.5.tar.gz /var/aah_load
cd /var/aah_load
tar xvfz asteriskathome-1.5.tar.gz
./install.sh
3 Configuration
Once you have installed your Asterisk@Home system you can start the configuration
process. First register a phone to an extension. Next configure a trunk to make outbound
calls and receive incoming calls.
3.1 Quick start
3.1.1 Set an IP address for your Asterisk@Home box
To configure Asterisk@Home you will need access to the Web GUI.
If you log into the console you will get a message which displays the IP address of your
Asterisk@Home system. If this field is blank then you have a problem with the network card.
Type
netconfig
at the command line. This will allow you to set a static IP address for your
Asterisk@Home box.
3 of 21
After you have configured your network card reboot the system by typeing
reboot.
Your
system will restart and you should be able to connect to your system from any web browser
on your network.
3.1.2 Configure an extension
Go to a pc on your network with a web browser and connect to your Asterisk@Home box.
Click on
Asterisk Management Portal
(user:
maint, pass: password)
and then
setup.
Click
Extensions
then
Add Extension.
Use the default extension
200
and type in a
password for registration like "abc123". then enter the name of the person using this
extension.
Go down to the voicemail section and enter a voicemail password. Use something you can
type on a phone keypad like '1234'. Enter an e-mail address where you would like your
voice messages sent and
click add extension.
Then click on the
red apply bar
at the top
of the screen.
Set up a phone for this extension.
Get a SIP phone an
X-Ten soft phone
is good for
testing. See the
section on the X-Ten phone.
remember to use your
extension
and
extension password.
Make a call from your phone.
(try *45 this is a local echo test)
3.1.3 Configure a trunk for outbound and inbound calls
Using
AMP
(user:
admin, pass: password)
select
setup
then
trunks.
Click on the type of
trunk you want to create. See the VOIP Service Providers section for how to configure a
trunk for your provider.
3.1.4 Configure Outbound Routing
Next you need a route to allow calls from your phones to go out on a trunk. If you have
more than one trunk you can set up rules to determine how a trunk is chosen for each call.
Here we will set all calls to go out one trunk.
Using
AMP
(user:
admin, pass: password)
select
setup
then
Outbound Routing.
Type
in a
name
for your route. Then enter the following in the
dial pattern box.
1NXXNXXXXXX
NXXNXXXXXX
NXXXXXX
This will set all calls to use this route.
Next go to the
Trunk Sequence
section. Drop down the box and
select the trunk you
4 of 21
configured earlier.
Click
add.
That's it. Click
Submit Changes
and then click on the
red apply bar
at the top of the
screen.
Try dialing a number on your phone like 19197543700 (RedHat customer support) and you
should hear "Welcome to RedHat"
3.1.5 Configuring Incoming Calls
Next you need a route to allow calls from your provider to go someplace. Using
AMP
(user:
maint, pass: password)
select
setup
then
Incoming Calls.
Under the
Send Incoming
Calls from the PSTN to: section
drop down the box next to
Extension:
and select the
extension
200
you created earlier.
Click
Submit Changes
and then click on the
red apply bar
at the top of the screen.
Call the phone number from your provider with a cell phone or other non-IP phone. Your SIP
phone at extension 200 should ring.
3.2 PSTN interface cards
There are may type's of PSTN interface cards. These can include a single FXO card the allow
1 home telephone line to be connected to asterisk, or a T1 card that allows a digital trunk to
be connected to Asterisk. All of these cards allow you to make calls directlly on the Public
Switch Telephone Network without have to use a VOIP phone service provider.
PSTN cards and also be used to connect PSTN (Non VOIP) phone to Asterisk. These can
include a single FXS card the allow 1 home telephone to be connected to asterisk, or a T1
card that allows a Channel bank with 24 phones or a tie line to a PBX to be connected to
Asterisk.
3.2.1 FXO Cards
These cards allow you to connect a POTS (plain Old Telephone System) line to your
Asterisk@Home box.
3.2.1.1 Digium Wildcard X100P OEM FXO PCI Card
These voice modems are available on e-bay for about $10.00 They are not made by Digium
and are of low quality. Having said this they can work very well in many situations. If your
phone line is well balanced there will work well. If it’s not you can get some bad echos. We
recommend them only for testing not for a production system.
5 of 21
Zgłoś jeśli naruszono regulamin