<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Am 17.06.2014 09:04, schrieb thufir:<br>
</div>
<blockquote cite="mid:539FE886.8070904@gmail.com" type="cite">I have
the Asterisk book, it's enormous, the 4th edition as per
<a class="moz-txt-link-freetext" href="http://www.asteriskdocs.org/">http://www.asteriskdocs.org/</a>.
<br>
<br>
I'd like to do something like:
<br>
<br>
<a class="moz-txt-link-freetext" href="http://www.voip-info.org/wiki/view/Asterisk+quickstart">http://www.voip-info.org/wiki/view/Asterisk+quickstart</a>
<br>
<br>
just to have two hardphones act as extensions and call each other.
Is that a reasonable first task?
<br>
<br>
I'm looking for the simplest litmus test for functionality
possible.
<br>
<br>
<br>
<br>
thanks,
<br>
<br>
Thufir
<br>
<br>
</blockquote>
Hi ... this script will get you up and running on a debian7
distribution. <br>
<br>
<code><br>
<code>#!/bin/sh</code>
<p><code>apt-get update && apt-get upgrade -y</code></p>
<p><code>asteriskversion=asterisk-12.3.2</code></p>
<code>
<p>apt-get install -y linux-headers-`uname -r`<br>
apt-get install -y build-essential<br>
apt-get install -y wget<br>
apt-get install -y libssl-dev<br>
apt-get install -y libncurses5-dev<br>
apt-get install -y libnewt-dev<br>
apt-get install -y libxml2-dev<br>
apt-get install -y libsqlite3-dev<br>
apt-get install -y libjansson-dev<br>
apt-get install -y git</p>
<p>ln -s /usr/src/linux-headers-`uname -r` /usr/src/linux</p>
<p>cd /usr/src</p>
<p>## pjsip installieren<br>
git clone <a class="postlink"
href="https://github.com/asterisk/pjproject">https://github.com/asterisk/pjproject</a>
pjproject<br>
cd /usr/src/pjproject<br>
./configure --prefix=/usr --enable-shared --disable-sound
--disable-resample --disable-video --disable-opencore-amr<br>
<br>
## um IPv6 Support in pjsip einzuschalten, muss das
CFLAGS='-DPJ_HAS_IPV6=1' angegeben werden !!!!<br>
# !!!!!!!!!!!!!!!!!!!! IPV6 is turned off at default
!!!!!!!!!!!!!!!!!!!!!<br>
#./configure CFLAGS='-DPJ_HAS_IPV6=1' --prefix=/usr
--enable-shared --disable-sound --disable-resample
--disable-video --disable-opencore-amr<br>
#
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</p>
<p>make dep<br>
make<br>
make install<br>
ldconfig</p>
<p>### check inst.<br>
# ldconfig -p | grep libpj</p>
<p>## System vorbereiten<br>
## download Asterisk<br>
if [ ! -f /usr/src/$asteriskversion.tar.gz ] ; then<br>
wget
<a class="moz-txt-link-freetext" href="http://downloads.asterisk.org/pub/telephony/asterisk/$asteriskversion.tar.gz">http://downloads.asterisk.org/pub/telephony/asterisk/$asteriskversion.tar.gz</a><br>
fi<br>
if [ ! -d /usr/src/$asteriskversion ] ; then<br>
tar xvzf $asteriskversion.tar.gz<br>
fi<br>
## erforderliche libs installieren<br>
/usr/src/$asteriskversion/contrib/scripts/install_prereq install</p>
<p>## optional<br>
/usr/src/$asteriskversion/contrib/scripts/get_mp3_source.sh<br>
/usr/src/$asteriskversion/contrib/scripts/get_ilbc_source.sh<br>
gcc -O2 /usr/src/$asteriskversion/contrib/utils/rawplayer.c -o
/usr/bin/rawplayer</p>
<p>## asterisk installieren<br>
cd /usr/src/$asteriskversion<br>
./configure<br>
make menuconfig<br>
make<br>
make install<br>
make samples<br>
make config<br>
make install-logrotate</p>
</code>
<p><code></code><br>
</code></p>
<br>
<br>
<div class="moz-signature">-- <br>
<b>Rainer Piper</b>
<br>
Integration engineer
<br>
Koeslinstr. 56
<br>
53123 BONN <br>
GERMANY
<br>
Phone: +49 228 97167161</div>
</body>
</html>