Previous
Home | Wiki
Next

Phase 3: Configuring Asterisk

1. Hardware Configuration
My current hardware configuration is shown below:

Small Asterisk Setup

Of particular interest are the three analog lines originating at the analog/digital phone switch and terminating at the Digium Wildcard X100Ps in the Asterisk server.  If you only have one phone line available (like most homes), only one X100P would be necessary and it would be connected to an analog line running directly to the PSTN.

This setup allows calls to be placed from the soft phones as follows:
The combinations of 9s required to place specific calls is a result of the outgoing context in my extensions.conf file and the need to dial a 9 to reach an outside line from the analog/digital phone switch.

Incoming calls can be made to the Asterisk server by dialing the extension of any one of the analog lines running into it.  The incoming context of my extensions.conf file is configured to direct these calls to three soft phones in parallel.  The first soft phone to pick up the call will receive it and cause the other soft phones to stop ringing.  If none of the soft phones picks up after twenty seconds, a short message is played and the incoming call is hungup.

Note that the number of analog lines running into the Asterisk server is the bottleneck in this configuration.  While the number of soft phone to soft phone calls is limited only by the available bandwidth on the LAN, there is a limit of 3 calls involving a soft phone and any phone connected to the analog/digital phone switch.

2. Configure and Start Asterisk
I'm done for the week, but I don't want to leave you hanging.  Below you'll find enough information to get your Asterisk installation up and running.  Be sure to take a look at the comments in the configuration files, as some of the stuff in there is specific to my install and needs simple customization.  I'll be back next week to clean up this mess!

Configure Asterisk
1. Execute the following commands at a console window's command line:
cd /usr/src/asterisk/configs
cp modem.conf.sample /etc/asterisk/modem.conf
cp modules.conf.sample /etc/asterisk/modules.conf
cp phone.conf.sample /etc/asterisk/phone.conf
cp voicemail.conf.sample /etc/asterisk/voicemail.conf

2. Download the following file to the /etc/ directory:
zaptel.conf

3. Download the following files to the /etc/asterisk/ directory
extensions.conf
sip.conf
zapata.conf

Start Asterisk
Execute the following commands at a console window's command line:
modprobe zaptel
modprobe wcfxo
asterisk -vvvvvvvc

At the *CLI> prompt, type help.

Get Xten X-Lite
Download and install on your Windows machines.
Tip: Domain/Realm and SIP Proxy should both be set to the IP address of your Asterisk server.

Previous
Home | Wiki
Next