#!/bin/bash cd /root yum -y install php-imap apachectl restart sed -i ' /\[from-internal-custom\]/ { a\ exten => 555,1,Answer\ exten => 555,2,Wait(1)\ exten => 555,3,Set(TIMEOUT(digit)=7)\ exten => 555,4,Set(TIMEOUT(response)=10)\ exten => 555,5,Flite("At the beep enter your e-mail password.")\ ;exten => 555,5,Swift("At the beep enter your e-mail password.")\ exten => 555,6,Read(PWCODE,beep,4)\ exten => 555,7,Flite("Please hold a moment.")\ ;exten => 555,7,Swift("Please hold a moment.")\ exten => 555,8,AGI(nv-mailcall.php|${PWCODE})\ exten => 555,9,Flite("Thank you for calling. Good bye.")\ ;exten => 555,9,Swift("Thank you for calling. Good bye.")\ exten => 555,10,Hangup\ }' /etc/asterisk/extensions_custom.conf cd /usr/local/bin wget http://nerdvittles.com/trixbox123/mime-construct chmod +x mime-construct cd /var/www/html mkdir readmail cd readmail wget http://nerdvittles.com/mailcall/webstuff.zip unzip webstuff.zip rm -f webstuff.zip cp config.php config.bak.php cd /var/lib/asterisk/agi-bin wget http://nerdvittles.com/mailcall/mailcall.zip unzip mailcall.zip rm -f mailcall.zip cp nv-config-555.php nv-config.php chown asterisk:asterisk nv*.php chmod 775 nv*.php cd /root