如何在Ubuntu Asterisk安装 1.6.0和Asterisk RealTime

2023-04-12 02:11:00 ubuntu 安装 如何在

:

如何在Ubuntu Asterisk安装1.6.0和Asterisk RealTime

Asterisk is a powerful open source PBX system that can be installed on a variety of operating systems, including Ubuntu. This guide will show you how to install Asterisk 1.6.0 and the Asterisk RealTime module on Ubuntu 10.04.

Before you begin, you will need to have a working Ubuntu installation with root access. You will also need to have the following packages installed:

build-essential

libxml2-dev

libncurses5-dev

uuid-dev

sqlite3

libsqlite3-dev

bison

flex

openssl

libssl-dev

libsrtp0-dev

libiksemel-dev

libresample1-dev

libnewt-dev

libusb-dev

libspandsp-dev

To install these packages, you can use the apt-get command:

sudo apt-get install build-essential libxml2-dev libncurses5-dev uuid-dev sqlite3 libsqlite3-dev bison flex openssl libssl-dev libsrtp0-dev libiksemel-dev libresample1-dev libnewt-dev libusb-dev libspandsp-dev

With the required packages installed, you can now proceed to download the Asterisk source code. You can do this by visiting the Asterisk downloads page and selecting the "Asterisk 1.6.0 source code" link:

http://www.asterisk.org/downloads/asterisk-1.6.0

Once the download is complete, extract the contents of the tarball:

tar zxvf asterisk-1.6.0.tar.gz

Now change into the Asterisk source code directory:

cd asterisk-1.6.0

Before compiling Asterisk, you need to run the configure script. This script will check for all of the required dependencies and generate the Makefiles needed to build Asterisk. To run the configure script, simply type the following command:

./configure

If the configure script completes successfully, you should see a message similar to the following:

Now type 'make menuselect' to select the Asterisk modules you wish to compile and install.

If you see any error messages, make sure that you have installed all of the required dependencies. Once the configure script has completed successfully, you can proceed to compile Asterisk by typing the following command:

make

This process will take a while to complete. Once it is finished, you can install Asterisk by typing the following command:

sudo make install

This will install Asterisk into the /usr/local/sbin directory. You can verify that Asterisk was installed correctly by typing the following command:

/usr/local/sbin/asterisk -vvvvvvvvvvvr

You should see a message similar to the following:

Asterisk 1.6.0.0, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer markster@digium.com. Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.0.0 currently running on ubuntu (pid = 1234) ubuntu*CLI>

If you see this message, then Asterisk is running correctly.

Now that Asterisk is installed, you need to install the Asterisk RealTime module. This module allows Asterisk to store its configuration information in a database, which makes it easier to manage a large number of Asterisk servers. To install the Asterisk RealTime module, you need to first download the source code from the Asterisk downloads page:

http://www.asterisk.org/downloads/asterisk-1.6.0

Once the download is complete, extract the contents of the tarball:

tar zxvf asterisk-1.6.0.tar.gz

Now change into the Asterisk source code directory:

cd asterisk-1.6.0

Before compiling the Asterisk RealTime module, you need to run the configure script. This script will check for all of the required dependencies and generate the Makefiles needed to build the module. To run the configure script, simply type the following command:

./configure

If the configure script completes successfully, you should see a message similar to the following:

Now type 'make menuselect' to select the Asterisk modules you wish to compile and install.

If you see any error messages, make sure that you have installed all of the required dependencies. Once the configure script has completed successfully, you can proceed to compile the Asterisk RealTime module by typing the following command:

make

This process will take a while to complete. Once it is finished, you can install the module by typing the following command:

sudo make install

This will install the module into the /usr/local/sbin directory. You can verify that the module was installed correctly by typing the following command:

/usr/local/sbin/asterisk -vvvvvvvvvvvr

You should see a message similar to the following:

Asterisk 1.6.0.0, Copyright (C) 1999 - 2010 Digium, Inc. and others. Created by Mark Spencer markster@digium.com. Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details. This is free software, with components licensed under the GNU General Public License version 2 and other licenses; you are welcome to redistribute it under certain conditions. Type 'core show license' for details. ========================================================================= Connected to Asterisk 1.6.0.0 currently running on ubuntu (pid = 1234) ubuntu*CLI>

If you see this message, then the Asterisk RealTime module is installed and running correctly.

相关文章