[tools] / trunk / Video_Conferencing_Startup_Kit_Pkg_2 / install.sh Repository:
ViewVC logotype

View of /trunk/Video_Conferencing_Startup_Kit_Pkg_2/install.sh

Parent Directory Parent Directory | Revision Log Revision Log


Revision 89 - (download) (as text) (annotate)
Wed Sep 7 14:38:33 2011 UTC (20 months, 2 weeks ago) by jhermanski
File size: 3584 byte(s)
Add Video Demo Startup Kit
    1 #!/bin/sh
    2 #
    3 # Video startup Kit Installation script
    4 #
    5 ##########################################################################
    6 
    7 echo "Installing PowerMedia Video Startup Kit, package 2"
    8 echo
    9 echo "This should be run on the system built from a Diastar ISO."
   10 echo "The license for the Diastar Media Engine must already be installed."
   11 echo
   12 echo -n "Proceed? "
   13 read ANS
   14 if test $ANS != 'y'
   15 then
   16   echo "Aborting installation!"
   17   exit 1
   18 fi
   19 
   20 # Make sure Diastar or Asterisk is not running...
   21 service diastar stop
   22 service asterisk stop
   23 sleep 4
   24 
   25 # Create Diastar config file
   26 service diastar config
   27 
   28 # Copy asterisk sound files into place to avoid downloading them
   29 # during asterisk install
   30 cp asterisk_sounds_cache.tgz /root
   31 pushd /root
   32 tar xvfz asterisk_sounds_cache.tgz
   33 rm -f asterisk_sounds_cache.tgz
   34 popd
   35 
   36 # Asterisk install
   37 cp asterisk-1.6.2.13.compiled_32-bit.tgz /usr/src
   38 pushd /usr/src
   39 tar xvfz asterisk-1.6.2.13.compiled_32-bit.tgz
   40 cd asterisk-1.6.2.13
   41 make install
   42 if test $? -ne 0
   43 then
   44   echo "Asterisk make install failed.  Aborting installation."
   45   exit 1
   46 fi
   47 popd
   48 
   49 # Now Chan_woomera
   50 cp -r chan_woomera /usr/src
   51 export PBXDIR=/usr/src/asterisk-1.6.2.13
   52 pushd /usr/src/chan_woomera
   53 make install
   54 if test $? -ne 0
   55 then
   56   echo "chan_woomera make install failed.  Aborting installation."
   57   exit 1
   58 fi
   59 popd
   60 
   61 # Demo Media
   62 cp -r ./media /var/lib/diastar
   63 cp -r ./imagemaker /var/lib/diastar
   64 
   65 # Animal Conference - SIPp executable, scripts and pcap files
   66 cp -r sipp /usr/sbin
   67 chmod 766 /usr/sbin/sipp/CIF *sh
   68 cp /usr/sbin/sipp/sipp /usr/sbin/sipp/CIF
   69 chmod 766 /usr/sbin/sipp/CIF/sipp
   70 
   71 # Asterisk diaplans
   72 cp -r asterisk /etc
   73 
   74 # Asterisk Scripts
   75 cp ami_scripts/* /usr/sbin
   76 chmod 766 /usr/sbin/confrec*sh
   77 
   78 # Asterisk AGI scripts
   79 cp agi_scripts/* /var/lib/asterisk/agi-bin
   80 chmod 766 /var/lib/asterisk/agi-bin/*agi
   81 
   82 # Imagemake init
   83 cp -r imagemaker.d /etc/diastar
   84 
   85 # Diastar conference IDs for 4 video conference demos.  Append to config file
   86 cat /etc/diastar/diastar.conf |  sed '/section is used for conferences/,$ d' > tmp.$$
   87 mv tmp.$$ /etc/diastar/diastar.conf
   88 cat diastar/diastar.confids >> /etc/diastar/diastar.conf
   89 
   90 # Changes for conference recording
   91 cat /etc/diastar/diastar.conf |  sed -e 's/audio_format = pcmu/audio_format = g722/' -e  's/; record_audio_format =/record_audio_format = g722/' -e  's/; record_video_format =/record_video_format = h264/' -e 's/; record_video_size =/record_video_size = CIF/' > tmp.$$
   92 mv tmp.$$ /etc/diastar/diastar.conf
   93 
   94 # Couple of useful scripts
   95 cp diastar/active_user.sh /etc/diastar
   96 cp diastar/bounce_diastar.sh /etc/diastar
   97 cp diastar/reset_conf_dbs.sh /etc/diastar
   98 chmod 766 /etc/diastar/active_user.sh /etc/diastar/reset_conf_dbs.sh /etc/diastar/bounce_diastar.sh
   99 
  100 # Diastar executable with conference recording fixes
  101 #mv /usr/bin/diastar /usr/bin/diastar.trunk
  102 #cp diastar/diastar_recordhangup_fix2 /usr/bin/diastar
  103 #chmod 766 /usr/bin/diastar
  104 
  105 # Set up asterisk as a service
  106 cp asterisk/asterisk_init.d /etc/init.d/asterisk
  107 chmod 766 /etc/init.d/asterisk
  108 chkconfig --add asterisk
  109 
  110 echo
  111 echo "Done instaliing Video Startup Kit package 2"
  112 
  113 
  114 # If opensips installation directory exists, then we want to install
  115 # the registrar.  If not, this system will be behind a BorderNet500 and
  116 # does not need it.
  117 if test -d opensips
  118 then
  119   pushd opensips
  120   ./install.sh
  121 fi
  122 
  123 echo
  124 echo -n "Ready to start video conferencing services.  Proceed? "
  125 read ANS
  126 if test $ANS != 'y'
  127 then
  128         echo "Video Startup Kit installed, but Diastar and Asterisk services must be started manually."
  129         exit 0
  130 fi
  131 
  132 service diastar restart
  133 service asterisk restart
  134 
  135 exit 0
  136 

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.8