Changeset 14
- Timestamp:
- 10/15/04 08:42:50 (4 years ago)
- Files:
-
- trunk/AMP/INSTALL (modified) (8 diffs)
- trunk/AMP/SQL/newinstall.sql (modified) (1 diff)
- trunk/AMP/amp_conf/astetc/vm_email.inc.template (modified) (1 diff)
- trunk/AMP/amp_conf/htdocs/admin/cdr/lib/defines.php.template (modified) (1 diff)
- trunk/AMP2-UseAmportal/INSTALL (modified) (8 diffs)
- trunk/AMP2-UseAmportal/SQL/newinstall.sql (modified) (1 diff)
- trunk/AMP2-UseAmportal/amp_conf/etc/asterisk/vm_email.inc.template (modified) (1 diff)
- trunk/AMP2-UseAmportal/amp_conf/var/lib/asterisk/agi-bin/dialparties.agi (modified) (1 diff)
- trunk/AMP2-UseAmportal/amp_conf/var/www/html/admin/cdr/lib/defines.php.template (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/AMP/INSTALL
r13 r14 12 12 httpd (Apache) 13 13 mysql 14 mysql-devel 14 15 mysql-server 15 16 php 16 17 php-mysql 17 18 openssl 19 openssl-devel 18 20 kernel-source 21 perl 22 perl-CPAN 23 cvs 24 bison 19 25 20 26 ### Perl module Net::Telnet is required: … … 22 28 perl -MCPAN -e "install Net::Telnet" 23 29 24 ###25 Download the latest AMP files from CVS:26 27 - cd /usr/src28 - cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/amportal login [null password]29 - cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/amportal co AMP30 31 32 30 ### 33 31 Some linux distros have replaced the mpg123 application with another application, mpg321, and created a symbolic link to "mpg123", so it seems to work in the same way. Asterisk MusicOnHold only works with original mpg123. … … 60 58 - install it 61 59 60 ### 61 Download the latest AMP files from CVS: 62 (alternatively, download the tarball and extract to /usr/src) 63 64 - cd /usr/src 65 - cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/amportal login [null password] 66 - cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/amportal co AMP 62 67 63 68 ### … … 102 107 - cp app_rxfax.c /usr/src/asterisk/apps/ 103 108 - cp app_txfax.c /usr/src/asterisk/apps/ 104 - cp Makefile.patch /usr/src/asterisk/apps/109 - cp apps_makefile.patch /usr/src/asterisk/apps/ 105 110 106 111 - cd /usr/src/asterisk/apps 107 - patch < Makefile.patch112 - patch < apps_makefile.patch 108 113 109 114 … … 118 123 Building Asterisk and configuring it to run as a non-root user 119 124 120 - Edit /usr/src/asterisk/Makefile such that :125 - Edit /usr/src/asterisk/Makefile such that (~ line 122): 121 126 122 127 ASTVARRUNDIR=$(INSTALL_PREFIX)/var/run/asterisk … … 172 177 ### 173 178 Copy in all necessary Asterisk configuration files 179 **Note - this script can be used to upgrade your configuration with newer verions of AMP 174 180 175 181 - cd /usr/src/AMP … … 278 284 279 285 ### 280 Start httpd and asterisk286 Start everything: 281 287 282 288 - As root run: … … 284 290 service httpd start 285 291 286 - As asterisk run: 287 288 safe_asterisk 292 - As root run: 293 294 su asterisk -c "export PATH=$PATH:/usr/sbin && export LD_LIBRARY_PATH=/usr/local/lib && /usr/sbin/safe_asterisk" 295 296 - As root run: 297 298 cd /var/www/html/panel; su asterisk -c /var/www/html/panel/safe_opserver & 289 299 290 300 - Point your browser to: 291 301 292 http://[ip address] /admin293 294 302 http://[ip address] 303 304 trunk/AMP/SQL/newinstall.sql
r4 r14 28 28 29 29 INSERT INTO `admin` VALUES ('need_reload', 'false'); 30 INSERT INTO `admin` VALUES ('version','1.10 RC2.0002');30 INSERT INTO `admin` VALUES ('version','1.10.0002'); 31 31 -- -------------------------------------------------------- 32 32 trunk/AMP/amp_conf/astetc/vm_email.inc.template
r8 r14 1 1 ; Change the email body, variables: VM_NAME, VM_DUR, VM_MSGNUM, VM_MAILBOX, VM_CALLERID, VM_DATE 2 2 3 emailbody=${VM_NAME},\n\nThere is a new voicemail in mailbox ${VM_MAILBOX}:\n\n\tFrom:\t${VM_CALLERID}\n\tLength:\t${VM_DUR} seconds\n\tDate:\t${VM_DATE}\n\nDial *98 to access your voicemail by phone.\nVisit http:// courtnage.dyndns.org/cgi-bin/vmail.cgi?box=${VM_MAILBOX} to manage your voicemail with a web browser.\n3 emailbody=${VM_NAME},\n\nThere is a new voicemail in mailbox ${VM_MAILBOX}:\n\n\tFrom:\t${VM_CALLERID}\n\tLength:\t${VM_DUR} seconds\n\tDate:\t${VM_DATE}\n\nDial *98 to access your voicemail by phone.\nVisit http://192.168.1.101/cgi-bin/vmail.cgi?box=${VM_MAILBOX} to manage your voicemail with a web browser.\n 4 4 5 5 trunk/AMP/amp_conf/htdocs/admin/cdr/lib/defines.php.template
r7 r14 1 1 <?php 2 2 3 define ("WEBROOT", "http:// courtnage.dyndns.org/admin/cdr/");3 define ("WEBROOT", "http://192.168.1.101/admin/cdr/"); 4 4 define ("FSROOT", "/var/www/html/admin/cdr/"); 5 5 trunk/AMP2-UseAmportal/INSTALL
r13 r14 12 12 httpd (Apache) 13 13 mysql 14 mysql-devel 14 15 mysql-server 15 16 php 16 17 php-mysql 17 18 openssl 19 openssl-devel 18 20 kernel-source 21 perl 22 perl-CPAN 23 cvs 24 bison 19 25 20 26 ### Perl module Net::Telnet is required: … … 22 28 perl -MCPAN -e "install Net::Telnet" 23 29 24 ###25 Download the latest AMP files from CVS:26 27 - cd /usr/src28 - cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/amportal login [null password]29 - cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/amportal co AMP30 31 32 30 ### 33 31 Some linux distros have replaced the mpg123 application with another application, mpg321, and created a symbolic link to "mpg123", so it seems to work in the same way. Asterisk MusicOnHold only works with original mpg123. … … 60 58 - install it 61 59 60 ### 61 Download the latest AMP files from CVS: 62 (alternatively, download the tarball and extract to /usr/src) 63 64 - cd /usr/src 65 - cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/amportal login [null password] 66 - cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/amportal co AMP 62 67 63 68 ### … … 102 107 - cp app_rxfax.c /usr/src/asterisk/apps/ 103 108 - cp app_txfax.c /usr/src/asterisk/apps/ 104 - cp Makefile.patch /usr/src/asterisk/apps/109 - cp apps_makefile.patch /usr/src/asterisk/apps/ 105 110 106 111 - cd /usr/src/asterisk/apps 107 - patch < Makefile.patch112 - patch < apps_makefile.patch 108 113 109 114 … … 118 123 Building Asterisk and configuring it to run as a non-root user 119 124 120 - Edit /usr/src/asterisk/Makefile such that :125 - Edit /usr/src/asterisk/Makefile such that (~ line 122): 121 126 122 127 ASTVARRUNDIR=$(INSTALL_PREFIX)/var/run/asterisk … … 172 177 ### 173 178 Copy in all necessary Asterisk configuration files 179 **Note - this script can be used to upgrade your configuration with newer verions of AMP 174 180 175 181 - cd /usr/src/AMP … … 278 284 279 285 ### 280 Start httpd and asterisk286 Start everything: 281 287 282 288 - As root run: … … 284 290 service httpd start 285 291 286 - As asterisk run: 287 288 safe_asterisk 292 - As root run: 293 294 su asterisk -c "export PATH=$PATH:/usr/sbin && export LD_LIBRARY_PATH=/usr/local/lib && /usr/sbin/safe_asterisk" 295 296 - As root run: 297 298 cd /var/www/html/panel; su asterisk -c /var/www/html/panel/safe_opserver & 289 299 290 300 - Point your browser to: 291 301 292 http://[ip address] /admin293 294 302 http://[ip address] 303 304 trunk/AMP2-UseAmportal/SQL/newinstall.sql
r4 r14 28 28 29 29 INSERT INTO `admin` VALUES ('need_reload', 'false'); 30 INSERT INTO `admin` VALUES ('version','1.10 RC2.0002');30 INSERT INTO `admin` VALUES ('version','1.10.0002'); 31 31 -- -------------------------------------------------------- 32 32 trunk/AMP2-UseAmportal/amp_conf/etc/asterisk/vm_email.inc.template
r7 r14 1 1 ; Change the email body, variables: VM_NAME, VM_DUR, VM_MSGNUM, VM_MAILBOX, VM_CALLERID, VM_DATE 2 2 3 emailbody=${VM_NAME},\n\nThere is a new voicemail in mailbox ${VM_MAILBOX}:\n\n\tFrom:\t${VM_CALLERID}\n\tLength:\t${VM_DUR} seconds\n\tDate:\t${VM_DATE}\n\nDial *98 to access your voicemail by phone.\nVisit http:// courtnage.dyndns.org/cgi-bin/vmail.cgi?box=${VM_MAILBOX} to manage your voicemail with a web browser.\n3 emailbody=${VM_NAME},\n\nThere is a new voicemail in mailbox ${VM_MAILBOX}:\n\n\tFrom:\t${VM_CALLERID}\n\tLength:\t${VM_DUR} seconds\n\tDate:\t${VM_DATE}\n\nDial *98 to access your voicemail by phone.\nVisit http://192.168.1.101/cgi-bin/vmail.cgi?box=${VM_MAILBOX} to manage your voicemail with a web browser.\n 4 4 5 5 trunk/AMP2-UseAmportal/amp_conf/var/lib/asterisk/agi-bin/dialparties.agi
r7 r14 12 12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 13 # GNU General Public License for more details. 14 # 15 # Amended by Coalescent Systems Inc. Sept, 2004 16 # to include support for DND, Call Waiting, and CF to external trunk 17 # info@coalescentsystems.ca 14 18 15 19 use Asterisk::AGI; trunk/AMP2-UseAmportal/amp_conf/var/www/html/admin/cdr/lib/defines.php.template
r7 r14 1 1 <?php 2 2 3 define ("WEBROOT", "http:// courtnage.dyndns.org/admin/cdr/");3 define ("WEBROOT", "http://192.168.1.101/admin/cdr/"); 4 4 define ("FSROOT", "/var/www/html/admin/cdr/"); 5 5
