Several bug fixes for remote agents,CLI lead loading, vdc_db_query

docs updated

git-svn-id: svn://192.168.202.10@775 3d104415-ff17-0410-8863-d5cf3c621b8a
This commit is contained in:
mattf
2008-02-08 13:40:05 +00:00
parent aaa1b31e3c
commit 83d98e97ac
9 changed files with 139 additions and 95 deletions
+19 -19
View File
@@ -31,16 +31,16 @@ PHASE 1: INSTALLING ASTERISK
1. follow these command line steps:
mkdir /usr/src/asterisk
cd /usr/src/asterisk
wget http://ftp.digium.com/pub/asterisk/releases/asterisk-1.2.24.tar.gz
wget http://ftp.digium.com/pub/zaptel/releases/zaptel-1.2.21.tar.gz
wget http://ftp.digium.com/pub/libpri/releases/libpri-1.2.5.tar.gz
gunzip asterisk-1.2.24.tar.gz
tar xvf asterisk-1.2.24.tar
gunzip zaptel-1.2.21.tar.gz
tar xvf zaptel-1.2.21.tar
gunzip libpri-1.2.5.tar.gz
tar xvf libpri-1.2.5.tar
cd ./zaptel-1.2.21
wget http://ftp.digium.com/pub/asterisk/releases/asterisk-1.2.26.2.tar.gz
wget http://ftp.digium.com/pub/zaptel/releases/zaptel-1.2.23.tar.gz
wget http://ftp.digium.com/pub/libpri/releases/libpri-1.2.7.tar.gz
gunzip asterisk-1.2.26.2.tar.gz
tar xvf asterisk-1.2.26.2.tar
gunzip zaptel-1.2.23.tar.gz
tar xvf zaptel-1.2.23.tar
gunzip libpri-1.2.7.tar.gz
tar xvf libpri-1.2.7.tar
cd ./zaptel-1.2.23
wget http://www.freedomphones.net/files/newt-0.51.6.tar.gz
gunzip newt-0.51.6.tar.gz
tar xvf newt-0.51.6.tar
@@ -54,11 +54,11 @@ make clean
make zttool
make
make install
cd ../libpri-1.2.5
cd ../libpri-1.2.7
make clean
make
make install
cd ../asterisk-1.2.24
cd ../asterisk-1.2.26.2
(1.2 tree) If you want to include Answering Machine Detection ability
you will need to download app_amd.c and amd.conf and alter the
apps/Makefile to compile it properly
@@ -73,11 +73,11 @@ cd ../asterisk-1.2.24
wget http://www.eflo.net/files/amd2.conf
mkdir /etc/asterisk
mv amd2.conf /etc/asterisk/amd.conf
*OPTIONAL*(1.2.23 thru 1.2.24) apply the meetme DTMF passthru patch
*OPTIONAL*(1.2.23 thru 1.2.26.2) apply the meetme DTMF passthru patch
wget http://www.eflo.net/files/meetme_DTMF_passthru-1.2.23.patch
patch -p1 < ./meetme_DTMF_passthru-1.2.23.patch
- File to patch: app_meetme.c
*OPTIONAL*(1.2.12.1 thru 1.2.24) apply the meetme volume control patch
*OPTIONAL*(1.2.12.1 thru 1.2.26.2) apply the meetme volume control patch
*Different patches available for 1.2.7.1 through 1.2.14
wget http://www.eflo.net/files/meetme_volume_control_1.2.16.patch
patch -p1 < ./meetme_volume_control_1.2.16.patch
@@ -89,7 +89,7 @@ cd ../asterisk-1.2.24
patch -p1 < ./cli_chan_concise_delimiter.patch
- File to patch: cli.c
*OPTIONAL*(1.2.14 thru 1.2.24) rewrite of waitforsilence
*OPTIONAL*(1.2.14 thru 1.2.26.2) rewrite of waitforsilence
wget http://www.eflo.net/files/app_waitforsilence.c
mv -f app_waitforsilence.c apps/app_waitforsilence.c
@@ -267,7 +267,7 @@ use asterisk;
##### make sure on these queries that you change the server_ip "10.10.10.15"
##### to the server IP that you are using
insert into servers (server_id,server_description,server_ip,active,asterisk_version)values('TESTasterisk','Test install of Asterisk server', '10.10.10.15','Y','1.2.24');
insert into servers (server_id,server_description,server_ip,active,asterisk_version)values('TESTast','Test install of Asterisk server', '10.10.10.15','Y','1.2.26.2');
insert into server_updater values('10.10.10.15','');
@@ -554,9 +554,9 @@ PHASE 5: ADDING STARTUP ENTRIES FOR ASTGUICLIENT/VICIDIAL SCRIPTS
# /usr/share/astguiclient/ip_relay/relay_control start 2>/dev/null 1>&2
# Disable console blanking and powersaving
/usr/bin/setterm -blank
/usr/bin/setterm -powersave off
/usr/bin/setterm -powerdown
setterm -blank
setterm -powersave off
setterm -powerdown
### start time server
/usr/local/bin/ntpdate -u 18.145.0.30
+29 -1
View File
@@ -97,7 +97,6 @@ TESTTRUNK = Zap/g2
TESTSIPTRUNK = SIP/VICItest:test@10.10.10.16:5060
[default]
;exten => _91999NXXXXXX,1,AGI(call_log.agi)
exten => _91999NXXXXXX,1,AGI(agi://127.0.0.1:4577/call_log)
exten => _91999NXXXXXX,2,Dial(${TESTTRUNK}/${EXTEN:2},,tTo)
exten => _91999NXXXXXX,3,Hangup
@@ -105,3 +104,32 @@ exten => _91999NXXXXXX,3,Hangup
exten => 999999999999,1,Answer
exten => 999999999999,2,Dial(${TESTSIPTRUNK}/${EXTEN},,tTo)
exten => 999999999999,2,Hangup
In the sip.conf file of the test server:
register => ASTtest2:test@10.10.10.16:5060
[VICItest]
disallow=all
allow=ulaw
type=friend
username=VICItest
secret=test
host=dynamic
dtmfmode=inband
defaultip=10.10.10.16
qualify=1000
In the sip.conf file of the control server:
[VICItest]
disallow=all
allow=ulaw
type=friend
username=VICItest
secret=test
host=dynamic
dtmfmode=inband
defaultip=10.10.10.16
qualify=1000
+45 -32
View File
@@ -12,23 +12,32 @@ cd make-3.81
make
make install
cd /usr/local
wget http://mirror.trouble-free.net/mysql_mirror/Downloads/MySQL-4.0/mysql-4.0.27.tar.gz
gunzip mysql-4.0.27.tar.gz
tar xvf mysql-4.0.27.tar
cd mysql-4.0.27
cd /usr/local/
wget http://mirror.trouble-free.net/mysql_mirror/Downloads/MySQL-5.0/mysql-5.0.45.tar.gz
gunzip mysql-5.0.45.tar.gz
tar xvf mysql-5.0.45.tar
cd mysql-5.0.45
groupadd mysql
useradd -g mysql mysql
./configure --prefix=/usr/local/mysql --enable-large-files --enable-shared=yes --with-readline
./configure --prefix=/usr/local/mysql --enable-shared=yes --with-readline --enable-thread-safe-client --enable-large-files --enable-assembler --with-client-ldflags=-all-static --with-mysqld-ldflags=-all-static --with-big-tables
make
make install
PATH=$PATH:$HOME/bin:/usr/local/mysql/bin/
export PATH
cp /usr/local/mysql-5.0.45/libmysql/.libs/libmysqlclient.so /usr/lib/
cp /usr/local/mysql-5.0.45/libmysql/.libs/libmysqlclient.so.15 /usr/lib/
cd /usr/local/mysql-5.0.45
scripts/mysql_install_db
chown -R root /usr/local/mysql
chown -R mysql /usr/local/mysql/var
chgrp -R mysql /usr/local/mysql
cp support-files/my-medium.cnf /etc/my.cnf
cp support-files/my-huge.cnf /etc/my.cnf
/usr/local/mysql/bin/mysqld_safe --user=mysql --skip-name-resolve --skip-host-cache &
ln -s /tmp/mysql.sock /var/run/mysql/mysql.sock
vi /etc/my.cnf
# add this line below 'skip-locking'
skip-name-resolve
# comment out the line 'log-bin=mysql-bin'
perl -MCPAN -e shell
@@ -169,7 +178,7 @@ make install
cd /usr/local
wget http://apache.secsup.org/dist/httpd/httpd-2.0.61.tar.gz
wget http://mirror.candidhosting.com/pub/apache/httpd/httpd-2.0.61.tar.gz
gunzip httpd-2.0.61.tar.gz
tar xvf httpd-2.0.61.tar
wget http://us2.php.net/distributions/php-4.4.7.tar.gz
@@ -288,16 +297,16 @@ make install
mkdir /usr/src/asterisk
cd /usr/src/asterisk
wget http://ftp.digium.com/pub/asterisk/releases/asterisk-1.2.24.tar.gz
wget http://ftp.digium.com/pub/zaptel/releases/zaptel-1.2.21.tar.gz
wget http://ftp.digium.com/pub/libpri/releases/libpri-1.2.5.tar.gz
gunzip asterisk-1.2.24.tar.gz
tar xvf asterisk-1.2.24.tar
gunzip zaptel-1.2.21.tar.gz
tar xvf zaptel-1.2.21.tar
gunzip libpri-1.2.5.tar.gz
tar xvf libpri-1.2.5.tar
cd ./zaptel-1.2.21
wget http://ftp.digium.com/pub/asterisk/releases/asterisk-1.2.26.2.tar.gz
wget http://ftp.digium.com/pub/zaptel/releases/zaptel-1.2.23.tar.gz
wget http://ftp.digium.com/pub/libpri/releases/libpri-1.2.7.tar.gz
gunzip asterisk-1.2.26.2.tar.gz
tar xvf asterisk-1.2.26.2.tar
gunzip zaptel-1.2.23.tar.gz
tar xvf zaptel-1.2.23.tar
gunzip libpri-1.2.7.tar.gz
tar xvf libpri-1.2.7.tar
cd ./zaptel-1.2.23
wget http://www.freedomphones.net/files/newt-0.51.6.tar.gz
gunzip newt-0.51.6.tar.gz
tar xvf newt-0.51.6.tar
@@ -311,11 +320,11 @@ make clean
make zttool
make
make install
cd ../libpri-1.2.5
cd ../libpri-1.2.7
make clean
make
make install
cd ../asterisk-1.2.24
cd ../asterisk-1.2.26.2
cd apps
wget http://www.eflo.net/files/app_amd2.c
mv app_amd2.c app_amd.c
@@ -386,6 +395,10 @@ mv -f *.mp3 ../orig-mp3/
############# INSTRUCTIONS FOR Asterik 1.4 release ####################
Downgrading back to 1.2.X from 1.4.X:
rm -f /usr/lib/asterisk/modules/*
rm -f /usr/include/asterisk/*
NOTE: If you want to use Asterisk 1.4, you will need to make sure that you set
the servers table "asterisk_version" field to the proper version number and you
@@ -412,24 +425,24 @@ rm -f /usr/lib/asterisk/modules/pbx_functions.so
mkdir /usr/src/asterisk-1.4
cd /usr/src/asterisk-1.4
wget http://ftp.digium.com/pub/asterisk/releases/asterisk-1.4.14.tar.gz
wget http://ftp.digium.com/pub/zaptel/releases/zaptel-1.4.6.tar.gz
wget http://ftp.digium.com/pub/libpri/releases/libpri-1.4.2.tar.gz
gunzip asterisk-1.4.14.tar.gz
tar xvf asterisk-1.4.14.tar
gunzip zaptel-1.4.6.tar.gz
tar xvf zaptel-1.4.6.tar
gunzip libpri-1.4.2.tar.gz
tar xvf libpri-1.4.2.tar
cd ./zaptel-1.4.6
wget http://ftp.digium.com/pub/asterisk/releases/asterisk-1.4.17.tar.gz
wget http://ftp.digium.com/pub/zaptel/releases/zaptel-1.4.8.tar.gz
wget http://ftp.digium.com/pub/libpri/releases/libpri-1.4.3.tar.gz
gunzip asterisk-1.4.17.tar.gz
tar xvf asterisk-1.4.17.tar
gunzip zaptel-1.4.8.tar.gz
tar xvf zaptel-1.4.8.tar
gunzip libpri-1.4.3.tar.gz
tar xvf libpri-1.4.3.tar
cd ./zaptel-1.4.8
./configure
make
make install
cd ../libpri-1.4.2
cd ../libpri-1.4.3
make clean
make
make install
cd ../asterisk-1.4.14
cd ../asterisk-1.4.17
wget http://www.eflo.net/files/enter.h
wget http://www.eflo.net/files/leave.h
mv -f enter.h apps/enter.h
+1 -1
View File
@@ -681,7 +681,7 @@ installation on another machine)
Go to http://www.php.net/ and download the php unix source code
- to install this directly on the command line type:
- cd /usr/local
- wget http://apache.secsup.org/dist/httpd/httpd-2.0.61.tar.gz
- wget http://mirror.candidhosting.com/pub/apache/httpd/httpd-2.0.61.tar.gz
- gunzip httpd-2.0.61.tar.gz
- tar xvf httpd-2.0.61.tar
- wget http://us2.php.net/distributions/php-4.4.7.tar.gz
+2 -2
View File
@@ -8,8 +8,8 @@ jitterbuffer=no
tos=lowdelay
;register => 1112223333:PASSWORD@iax.binfone.com
register => ASTloop:test@1270.0.1:40569
register => ASTblind:test@1270.0.1:41569
register => ASTloop:test@127.0.0.1:40569
register => ASTblind:test@127.0.0.1:41569
[ASTloop]
type=friend