[asterisk-users] quickstart

Rainer Piper rainer.piper at soho-piper.de
Tue Jun 17 05:14:05 CDT 2014

Am 17.06.2014 09:04, schrieb thufir:
> I have the Asterisk book, it's enormous, the 4th edition as per 
> http://www.asteriskdocs.org/.
> I'd like to do something like:
> http://www.voip-info.org/wiki/view/Asterisk+quickstart
> just to have two hardphones act as extensions and call each other. Is 
> that a reasonable first task?
> I'm looking for the simplest litmus test for functionality possible.
> thanks,
> Thufir
Hi ... this script will get you up and running on a debian7 distribution.


|apt-get update && apt-get upgrade -y|



apt-get install -y linux-headers-`uname -r`
apt-get install -y build-essential
apt-get install -y wget
apt-get install -y libssl-dev
apt-get install -y libncurses5-dev
apt-get install -y libnewt-dev
apt-get install -y libxml2-dev
apt-get install -y libsqlite3-dev
apt-get install -y libjansson-dev
apt-get install -y git

ln -s /usr/src/linux-headers-`uname -r` /usr/src/linux

cd /usr/src

## pjsip installieren
git clone https://github.com/asterisk/pjproject pjproject
cd /usr/src/pjproject
./configure --prefix=/usr --enable-shared --disable-sound 
--disable-resample --disable-video --disable-opencore-amr

## um IPv6 Support in pjsip einzuschalten, muss das 
CFLAGS='-DPJ_HAS_IPV6=1' angegeben werden !!!!
# !!!!!!!!!!!!!!!!!!!! IPV6 is turned off at default !!!!!!!!!!!!!!!!!!!!!
#./configure CFLAGS='-DPJ_HAS_IPV6=1' --prefix=/usr --enable-shared 
--disable-sound --disable-resample --disable-video --disable-opencore-amr
# !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

make dep
make install

### check inst.
# ldconfig -p | grep libpj

## System vorbereiten
## download Asterisk
if [ ! -f /usr/src/$asteriskversion.tar.gz ] ; then
if [ ! -d /usr/src/$asteriskversion ] ; then
tar xvzf $asteriskversion.tar.gz
## erforderliche libs installieren
/usr/src/$asteriskversion/contrib/scripts/install_prereq install

## optional
gcc -O2 /usr/src/$asteriskversion/contrib/utils/rawplayer.c -o 

## asterisk installieren
cd /usr/src/$asteriskversion
make menuconfig
make install
make samples
make config
make install-logrotate



*Rainer Piper*
Integration engineer
Koeslinstr. 56
53123 BONN
Phone: +49 228 97167161
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20140617/ba8e2ce0/attachment.html>

More information about the asterisk-users mailing list