Install Asterisk without hardware on Linux

Source: Internet
Author: User
On Linux, Asterisk-Linux Enterprise Application-Linux server application is installed without hardware. For details, refer to the following section. I recently studied an Open Source PBX: Asterisk. After a week of hard work, there was no obstacle to installing it for N times. I will summarize it for you.
Asterisk is what I don't want to talk about, interested in reading www.asterisk.org and www.voip-info.org. Maybe it is because the mainstream version of Asterisk of Open Source lacks official files. All installation, configuration, and customer support technical details are on his Wiki and email list. So I am confused when I get started. Currently, the mainstream version of Asterisk is 1.0.9, and 1.2.0 Bata has been released. It is officially claimed that Asterisk can be installed on any Linux server. However, after reading several installation notes from others and experimenting with Several Linux releases and kernel versions, I feel that the installation difficulty is often quite different. Especially those who are not familiar with Linux may be more difficult. The trouble For Asterisk is that it is difficult to install a third-party HPC card. However, it would be much easier to install these PCIe cards. Through continuous practice, I think the most smooth installation of the release version is Fedora C3, And the Asterisk version is 1.0.9. The following is an example of how to install these two versions.
1. Download FC3. There are too many places to download FC3.

2. Install FC3. I installed FC3 on VMWare, and of course there is no problem with bare metal installation. If the disk space is limited, select the minimum installation option when selecting components. After the installation, ensure that the FC network is correct, because we need to download something from the Internet later. To log on to the system as the Root user, we need to install some additional packages on the installation CD. Insert the installation disc into the optical drive. Attach the CD to 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 Warning about V3 SDA signature: NOKEY, key ID..., ignore it and it will not affect your installation. Continue to install other RPM packages.
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
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 like it's in this disk, it's hard to remember)

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 =: pserver: anoncvs@cvs.digium.com:/usr/cvsroot
Cvs login (the 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. Sip. conf and extensions. conf must be modified.
Add the following content to the sip. conf file, where 1498 and 1499 are the two phone numbers that I have preset:
[1498]
Type = friend
Username = 1498
Host = dynamic
Context = default
Canreinvite = yes
Dtmfmode = rfc2833

[1499]
Type = friend
Username = 1499
Host = dynamic
Context = default
Canreinvite = yes
Dtmfmode = rfc2833
Modify the default segment of extensions. conf to the following:
[Default]
Exten => _ 1XXX, 1, Dial (SIP/$ {EXTEN}, 15, t)
Exten => _ 1XXX, 3, Hangup

7. Start Asterisk
Asterisk-vvvvvvvvvvvvvcg
There will be many prompts after execution. Note that if there is a red ERROR in it, it indicates there is a problem. If the execution is successful, the screen stops:
Asterisk Ready
* CLI>

8. Test.
Start a Soft SIP phone on the other two machines, and configure the Domain and SIP Proxy addresses to the Linux IP address. The telephone numbers are 1498 and 1499 respectively. Now we can see that these two phones can be registered on the Astersik. Mutual call should be successful.
Related Article

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.