How to Set up the asterisk environment on the Linux platform

Source: Internet
Author: User

Http://hi.baidu.com/denglish/blog/item/5d7eaa2a800251f3e6cd4012.html

 

On the Linux platform, the asterisk environment is set up. 1. First, before setting up the asterisk environment, check whether the following reliable asterisk installation package exists in the Linux pilot test:

GCC -- libpri, zaptel, asterisk
Ncurses-devel-munuselect
Libtermcap-devel-Asterisk
Kernel-devel-zaptel
Kernel-smp-devel-zaptel
Gcc-C ++ -- Asterisk
OpenSSL-devel-Asterisk
Newt-devel-zaptel
Zlib-devel-Asterisk
Unixodbc-devel-Asterisk
Libtool-Asterisk
Make-Asterisk
Zaptel is the installation package for meeting timing. We can skip the installation process.
Note: Most of the installation packages required above are on the Linux installation CD, therefore, you do not need to download it separately. (libtermcap-devel, kernel-devel, and unixodbc-deve can be downloaded on www.rpmfind.net without the installation disk of Fedora 9 ).

2. Steps for installing asterisk:

1) decompress the asterisk package under/usr/src.

Tar zxvf asterisk-1.4.21.2.tar.gz

2) install Asterisk

CD, USR, SRC, and asterisk-1.4.21.2
./Configure
Make
Make install
Make Samples
Make progdocs

3. Set up the SIP Environment

Simple configuration of the SIP environment: (all configuration files are in the/etc/asterisk directory, and the configuration elsewhere is invalid) sip. conf
[General]
Allowoverlap = No
Bindport = 5060
Bindaddr = 0.0.0.0
Srvlookup = Yes
Qualify = Yes
Context = test
[1001]
Type = friend
Secret = test
Host = dynamic
[1002]
Type = friend
Secret = test
Host = dynamic
Extensions. conf
Add at the end of the document:
[Test]
Exten => 1001, dial (Sip)
Exten => 1002, 1, dial (Sip)

Now the SIP environment under astersik is set up, and the astersik is restarted.
/Usr/sbin/asterisk-vvvvvvcg

4. Client configuration (X-lite)

Menu-> system settings-> sip proxy-> default
Enable: Yes
Display name: 1001
Username: 1001
Authorization User: 1001
Password: Test
Domain/realm: xx. xx; asterisk server address
SIP Proxy: xx. xx; astersk server address

Note: We recommend that you use the default option. If you use other options, the option may be unavailable.

5. astersk Management

Log on to the astersk server running Console: astersk-crvvv
View logon User: SIP shwo peers
View detailed records: SIP show peer 1001
Reload the dialing scheme: dialplan reload
Reload the SIP scheme: SIP reload

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.