A general Asterisk install on a bare ClarkConnect 2.2 Home box….
We need a few rpms that aren't included with CC...
Add 'rpm
http://download.fedoralegacy.org/apt redhat/9/i386 os updates legacy-utils' to /etc/apt/sources.list
> apt-get update #Lets update sources
> apt-get upgrade #Lets update are system
> apt-get install cc-devel
Ok let's download and install a few rpms ..
> apt-get install cvs kernel-source
Grrr, my kernel-source didn't match my kernel version! I've been meaning to update my kernel. If you wish not to, just 'rpm -e kernel-source' to remove and download the correct version for your kernel, and install 'rpm -Uvh kernel-source.2.4.xxxxx.rpm'
Restart PC, if you upgraded kernel.
Ok let's download the latest version of Asterisk
> cd /usr/src
> export CVSROOT=:pserver:anoncvs@cvs.digium.com:/usr/cvsroot
> cvs login #the password is anoncvs.
> cvs checkout zaptel asterisk #I included zaptel which would normally be installed if you had a Digium FXO card, but ztdummy is needed for a timing source and to be able to use 'MOH(music on hold)' if you wish.
> cd zaptel
Open the Makefile, and remove the #(uncomment) from MODULES= (Line 46 on my CVS build). Should look like
MODULES=zaptel tor2 torisa wcusb wcfxo wcfxs \
ztdynamic ztd-eth wct1xxp wct4xxp ztdummy
> make clean; make install #Install ztdummy
> modprobe ztdummy #Load ztdummy
> cd ../asterisk
> make clean; make install #Install Asterisk
> make samples #I generally skip this step, but we'll include it for demo purposes.
> cd /etc/asterisk #Where all the config files are.
> asterisk -c #Let's see what errors we get. –cvvv for more verbose
Common errors….. I used 192.168.1.15 (stand-alone mode) for demo purpose. Bindaddr=0.0.0.0 should work if your box is connected straight to the internet in
(Firewall mode) just be sure to open/forward ports 5060/UDP (SIP) and 5036/UDP (IAX2) respectively. Might want to include 4569/UDP (IAX) but it’s mostly phased out.
Error, 'chan_sip.c:7909...Unable to get IP address...' Edit sip.conf bindaddr=192.168.1.15
Error, 'chan_mgcp.c:3994...Unable to get our IP address' Edit mgcp.conf bindaddr=192.168.1.15
Error, 'chan_skinny.c:2569' don't need this. Add noload => chan_skinny.so to modules.conf [modules] section
Error, 'chan_oss.c:238' sound card as a phone? Add noload => chan_oss.so to modules.conf [modules] section
Error, 'chan_zap.c:8892' We don't have FXO hardware. Add noload => chan_zap.so to modules.conf [modules] section
Error, 'chan_iax2.c:6868 load_module: Unable to open IAX timing interface: No such device' load the module > modprobe ztdummy
Now that we have asterisk running, let’s edit a few config files so we can connect.
Add to the end of sip.conf:
[5001] <- this will be our extension.
type=friend
context=default
secret=12345
username=5001
host=dynamic
mailbox=1234
restrictcid=yes
Install X-Lite from
http://www.xten.com
In the X-Lite Menu, go to System Settings, then Network. Remove any STUN server addresses.
Click Back, and then go to SIP Proxy, then Default.
Setup with our sip.conf demo info:
Enabled: Yes
Display Name: Jason
Username: 5001
Authorization User: 5001
Password: 12345
Domain/Realm: 192.168.1.15
SIP Proxy: 192.168.1.15:5060
Send Internal IP: Always
Exit the menu, you should now have 'Logged in - Enter Phone Number' at the top of X-Lite
Ok let's dial some preconfigured extensions.
Echo test: Dial 600, and then hit the green dial button.
Extension 500 will connect your Asterisk server to Digium's demo server. This demo shows how Asterisk can have dedicated trunk line connecting multiple PBX using the Asterisk IAX2 protocol. I use this to connect to Freeworld Dialup. FWD (fwd.pulver.com) the most popular and free voip service provider, allowing free calls to anyone and any service connected to it. A few fun examples
You can dial outbound 1(800) numbers for free.
People you know in the following area codes, can call you free (local to them) using their standard phone and then dialing your FWD extension. Love it!
Free Access Numbers:
Atlanta 678-918-5026
Atlantic City 609-840-8027
Baltimore 410-372-4173
Chicago 708-437-9040
Connecticut 860-256-4170
Dallas 469-449-2560
Fort Worth 817-886-2285
Daytona Beach 386-267-2650
Houston 832-631-1597
Los Angeles 323-908-4167
Miami 786-206-4270
New York 347-427-9019
N. New Jersey 973-494-5586
S. New Jersey 609-873-8119
Philadelphia 610-879-1419
San Francisco 415-354-1083
Seattle 206-219-5789
Washington, DC 202-742-5739