Citizen Call Center

From Forskningsavdelningen Wiki
Jump to: navigation, search

Asterisk plug-in to call up and connect a local phone with a remote phone using asterisk.

Contents

[edit] Installing asterisk in ubuntu (jaunty)

Installation setup dependency diagram

[edit] Installing zaptel

Go to http://downloads.asterisk.org/pub/telephony/zaptel/ And look for the latest released entity (not the one named current).

Download it to /usr/src/

cd /usr/src/
wget http://downloads.asterisk.org/pub/telephony/zaptel/zaptel-1.4.12.1.tar.gz
tar -zxvf zaptel-1.4.12.1.tar.gz
ln -s zaptel-1.4.12.1 zaptel1
cd zaptel1
sudo ./install_prereq test
sudo ./install_prereq install
sudo ./configure
(if configure is missing you are running are probably not running a release, you can either download a release or build the configure and make yourself using autogen and autoscan and then rename configure.scan to configure.in and run autoconf then ./configure and then automake make. *Will cause you troubble* )


You may need to download this patch { http://svn.debian.org/viewsvn/pkg-voip/zaptel/trunk/debian/patches/hrtimer_2628?view=markup&pathrev=6683 }

It relieves you of this make error:

/usr/src/zaptel-1.4.12.1/kernel/ztdummy.c:202: error: ‘struct hrtimer’ has no member named ‘expires’
sudo make
sudo make menuselect

Unselect all kernel modules except ztdummy and press "s" for save.

[ ] 8.  wctdm
[ ] 9.  wctdm24xxp
[ ] 10. wcte11xp
[ ] 11. wcte12xp
[ ] 12. wcusb
[ ] 13. xpp
< > 14. ztd-eth
< > 15. ztd-loc
[*] 16. ztdummy
[ ] 17. ztdynamic
[ ] 18. zttranscode

To install on system

make install
make config
modprobe zaptel
modprobe ztdummy

[edit] installing PRI

Download the latest release of libpri to /usr/src/ and link it up to start installing it

cd /usr/src/
wget http://downloads.asterisk.org/pub/telephony/libpri/libpri-1.4.10.1.tar.gz
tar -zxvf libpri-1.4.10.1.tar.gz
ln -s libpri-1.4.10.1 libpri1
cd libpri1
sudo make
sudo make install

[edit] Installing freeradius (for auditing accounts)

sudo apt-get install freeradius freeradius-common freeradius-utils libfreeradius-dev  libfreeradius2 freeradius-postgresql postgresql
freeradius-postgresql - PostgreSQL module for FreeRADIUS server
freeradius - a high-performance and highly configurable RADIUS server
freeradius-utils - FreeRadius client utilities
freeradius-common - FreeRadius common files
postgresql
libfreeradius-dev - FreeRADIUS shared library development files

[edit] Install freeradius-dialupadmin

The admin interface is great for administrating accounts and controling the authflow.

sudo apt-get install apache2 php5 freeradius-dialupadmin php5-pgsql
freeradius-dialupadmin - set of PHP scripts for administering a FreeRADIUS server

[edit] Installing the asterisk package

Finally its time to take a peak at asterisk installation:

cd /usr/src/
sudo -i
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-1.6.0.14.tar.gz
tar -zxvf asterisk-1.6.0.14.tar.gz
ln -s asterisk-1.6.0.14 asterisk
cd asterisk
apt-get install libspeex-dev libvorbis-dev libssl-dev libgsm1-dev libcrypto++-dev libopenh323-dev libldap2-dev libspeexdsp-dev
./configure
make
make menuselect
make install
make samples
make progdocs
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox