Asterisk1.2 compilation and Installation

Source: Internet
Author: User

Asterisk1.2 compilation and Installation

Http://fengren286.blog.163.com/blog/static/120926242008112395743252/

I have been in contact with asterisk for a long time, but I still cannot find many learning methods and methods. It may be because my English is too weak. However, I recently came to a Chinese document, I once again aroused my enthusiasm for asterisk.

Introduction to several Chinese asterisk Learning Websites: 1. Exploring the ippbx section; 2. Exploring the Open Source PBX Section


Several research asterisk QQ groups: asterisk enthusiasts Association
(20556356, 23223948); aseterisk (15805606); asterisk Forum (9638587); H.323-SIP R & D Association
Meeting (2095841); China sip Alliance (14188410,16354383)

Overseas users include: 1.www.astlinux.org; 2.www.voip-info.org

TIPS: PBX (private branch exchange) is an on-site number or telephone exchange platform used by companies or organizations to connect dedicated and public telephone networks.

First, what is asterisk? Asterisk is an open source code (Open Source) PBX system applied to VoIP.

2006-8-18

If a large-scale asterisk system is installed, some functions are generally distributed to several servers, and one or more core units are responsible for call processing; manage peripheral devices through one or more Redundant Servers (databases, language mailboxes, conferences, management, web interfaces, firewalls, etc)

Asterisk can be used on any X86 architecture platform, but its system reliability is completely dependent on the platform design. all the features that need to be supported must be carefully considered when selecting hardware.

Performance Considerations

The maximum number of simultaneous connections supported by the system. Each connection increases the system load.

2006-10-08

MAIN package: asterisk main program, libpri library, zaptel; (libpri-> zaptel-> asterisk)


Install the required asteris package: gcc3.x (Compilation); bison: replace YACC Parser (the extensions. conf expression must be parsed by bison) and
CLI; OpenSSL: cryptographic; libnewt is required to use zttool; ztdummy or zaptel hardware drive is used in real time.
Zaptel package must be installed. The libpri Library (glibc-kernheaders, glibc-
Headers, glibc-devel, CPP, binutils, GCC; libtermcap, slang-devel, netw-devel, M4; OpenSSL, opensll-devel; e2fsprogs-devel, krb5-devel, krb5-libs, zlib-devel; bison;

Compile libpri

ISDN)

Compile zaptel

Ztdummy DRIVER: Use the ztdummy driver as a substitute for time-sharing hardware.

Modules = zaptel tor2 torisa wcusb wcfxo wctdm \

Ztdynamic ztd-eth wct1xxp wct4xxp wcte11xp # ztdummy

Delete "#" (vi) before ztdummy, save the file, and you can edit it.

# Cd/usr/src/zaptel-version

# Make clean Delete binary files generated by source code

# Make

# Make install

# Chkconfig

  

System running udevd

To allow zaptel and other devices to be installed to the system through PCI hardware, some rules must be added.

# Vi/etc/udev/rules. d/50-udev.rules

# Section for zaptel

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"

Load zaptel

After configuring extensions. conf # modprobe zaptel (view lsmod | grep zaptel)

Load ztdummy (provides the time-sharing interface: time-sharing required for asterisk applications and functions)

# Modprobe ztdummy (view lsmod | grep ztdummy)

Zttool and ztcfg

The ztcfg program is used to read the configuration file "Mom/etc/zaptel. conf" and configure. zttool to check the status of your hardware.

Zconfig. h file

Compile Asterisk

# Cd/usr/src/asterisk-version

# Make clean Delete binary files generated by source code

# Make

# Make install

# Make samples install the default configuration file

# Make webvmail graphical interface for installing voice mail

# Make config

 

Load Asterisk

#/Usr/sbin/asterisk-parameter (-C: connect to the CLI interface of Asterisk,-V: simplicity,-G: If suddenly paralyzed, a core file can be generated, -R: Remote)

1. #/usr/sbin/asterisk-H

2. #/usr/sbin/asterisk-vvvc three-level complexity

3. #/usr/sbin/asterisk-vvvr reconnect Switch

4. #/bin/sh/usr/sbin/safe_asterisk generate a core file.

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.