Install asterisk with no hardware on Linux

Source: Internet
Author: User

Asterisk is what I do not want to say more, interested in watching www.asterisk.org and www.voip-info.org. Perhaps because it is open source, the mainstream version of the asterisk lack of official documents. All installation, configuration, and customer support technical details are on his wiki and mailing list. So when you get started, you're a little overwhelmed. Asterisk is now the mainstream version of the 1.0.9,1.2.0 Bata version has also come out. The official claim that asterisk can be installed on any Linux, but after I refer to a number of other people's installation notes, with several Linux distributions and kernel version of the test, I feel the ease of installation often vary widely. Especially for friends who are not familiar with Linux may be more difficult. Asterisk a lot of trouble from installing a third-party HFC card. It would be much simpler if these PCI cards were not installed. Through constant practice I think the most successful distribution is the Fedora C3,asterisk version is 1.0.9. Here I have the two versions for example to describe the installation steps.
1. Download FC3. Download fc3 Place too much, go to http://fedora.redhat.com/download/mirrors.html to find a faster server download it, no matter 4 CD version or 1 DVD version can be.
2. Install FC3. I am installing FC3 on VMware, and of course installing on bare metal is no problem. If you have limited disk space, select the minimum installation when selecting components. Once installed, make sure FC networks are OK because we need to download something from the internet later. With root logging into the system, we need to install some additional packages from the installation CD. Insert the installation CD into the optical drive. Mount the disc onto the system.
Mkdir/mnt/cdrom
Mount-t Iso9660/dev/hdc/mnt/cdrom
Cd/mnt/cdrom/fedora/rpms
RPM-IVH cpp-3.4.2-6.fc3.i386.rpm
If you see a v3 SDA Signature:nokey, Key ID ... Warning, don't ignore him, will not hinder you to install. Continue installing other RPM packages.
In Disk 2:
cvs-1.11.17-3.i386.rpm
bison-1.875c-2.i386.rpm
e2fsprogs-devel-1.35-11.2.i386.rpm
krb5-devel-1.3.4-7.i386.rpm
In Disk 3:
glibc-kernheaders-2.4-9.1.87.i386.rpm
glibc-headers-2.3.3-74.i386.rpm
glibc-devel-2.3.3-74.i386.rpm
gcc-3.4.2-6.fc3.i386.rpm
zlib-devel-1.2.1.2-1.i386.rpm
openssl-devel-0.9.7a-40.i386.rpm
LIBIDN-DEVEL-0.5.6-1.I386.RPM (it seems to be in this dish, don't remember very clearly)
3. Configure FC3.
Cd/usr/src
Ln-s/lib/modules/2.6.9-1.667/build/linux-2.6
Vi/etc/udev/rules.d/50-udev.rules
Add the following text after the last line of the file:
Kernel= "Zapctl", name= "Zap/ctl"
Kernel= "Zaptimer", name= "Zap/timer"
Kernel= "Zapchannel", name= "Zap/channel"
Kernel= "Zappseudo", name= "Zap/pseudo"
Kernel= "zap[0-9]*", name= "zap/%n"
4. Download Asterisk and Zaptel
Cd/usr/src
Export cvsroot=:p Server:anoncvs@cvs.digium.com:/usr/cvsroot
CVS Login (password is ANONCVS)
CVS Checkout Zaptel asterisk
5. Install asterisk and Zaptel
Cd/usr/src/zaptel
Make clean
Make Linux26
Make install
Cd/usr/src/asterisk
Make clean
Make install
Make samples
Modprobe Zaptel
6. Modify some configuration files. There are sip.conf and extensions.conf that need to be modified.
sip.conf Add the following, where 1498 and 1499 are my preset two phone numbers:
[1498]
Type=friend
username=1498
Host=dynamic
C
Canreinvite=yes
dtmfmode=rfc2833
[1499]
Type=friend
username=1499
Host=dynamic
C
Canreinvite=yes
dtmfmode=rfc2833
Extensions.conf's default paragraph is modified as follows:
[Default]
Exten => _1xxx,1,dial (sip/${exten},15,t)
Exten => _1xxx,3,hangup
7. Start asterisk
Asterisk-vvvvvvvvvvvvvvvcg
After execution, there will be a lot of prompts, note that if there is a red error in the words indicate a problem. If the execution succeeds, the screen stops at the end:
Asterisk ready
*cli>
8. Test.
On the other two machines, start a soft SIP phone and configure domain and SIP proxy addresses to that Linux IP address. The phone numbers are 1498 and 1499, respectively. At this point we should see that these two phones can be registered on the Astersik. Mutual calls should be successful.
Actually, it's a two-sentence solution.
Make
Make install

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.