Appendix B

Detailed installation instructions

The following instructions were put together in the context of a full re-installation of an Asterisk-CallWeb system.

  • Asterisk installation
    • Ensure that the AMD Asterisk module is installed (issue asterisk -r -x "show application AMD")
    • Include the following lines in the "from-internal-custom" context in extensions_custom.conf
      ;--
      ===============================================================================
      from-internal-custom
      ===============================================================================
      --;
      [from-internal-custom]
      ; Code permettant d'enregistrer les entrevues
      exten => _XXXX.,1,Set(FILENAME=${CDR(accountcode)}-${telkey}-${TIMESTAMP}) ; calculer le nom du fichier
      exten => _XXXX.,2,GotoIf($[ "${CDR(accountcode)}" != "" ]?3:5) ; si accountcode n'est pas vide, tester le telkey
      exten => _XXXX.,3,GotoIf($[ "${telkey}" != "" ) ]?4:5) ; si le telkey n'est pas vide lui aussi, enregistrer!
      exten => _XXXX.,4,Monitor(wav,${FILENAME},m) ; démarrer l'enregistrement
      exten => _XXXX.,5,Macro(dialout-trunk,1,${EXTEN},)
      exten => _XXXX.,6,Macro(dialout-trunk,2,${EXTEN},)
      exten => _XXXX.,7,Macro(outisbusy) ; No available circuits
    • add the following line before any context in extensions.conf ("op*" is the prefix of the IVR context files)
      #include "op*.conf"
    • add whatever context instructions are required for audio-visual monitoring
    • add whatever context instructions are required for playing audio files during interviews
    • add the custom robot contexts in /etc/asterisk
    • add the following files in /usr/bin
      cwAST.pl
      cwASTsiptozap.pl (make executable)
  • Robot installation
    • add the following files in /usr/bin
      cwAST.pl
      cwASTcall.pl (make executable)
      cwASTstocke.sh (make executable)
  • Server installation
    • create the MySQL data base and tables described in cwrobot.cgi
    • add a mount to /etc/fstab to create a location where to push interview recording .wav files into the CallWeb CATI server
      192.168.10.22:/mnt/wav /mnt/wav nfs rw 0 0
    • create the following directories
      /etc/cron.daily2
      /etc/cron.minute
    • place and make executable the following files in the following directories
      cwASTmovewav.pl in /etc/cron.daily2
    • add the following lines in in /etc/crontab
      30 23 * * * root /etc/cron.daily2/cwASTmovewav.pl
    • add the following lines in /etc/inittab
      # Faire tourner cwASTcall.pl dans toutes les configurations
      cw:2345:respawn:/usr/bin/cwASTcall.pl
    • reboot the server

Appendix B

Detailed installation instructions

The following instructions were put together in the context of a full re-installation of an Asterisk-CallWeb system.

  • Asterisk installation
    • Ensure that the AMD Asterisk module is installed (issue asterisk -r -x "show application AMD")
    • Include the following lines in the "from-internal-custom" context in extensions_custom.conf
      ;--
      ===============================================================================
      from-internal-custom
      ===============================================================================
      --;
      [from-internal-custom]
      ; Code permettant d'enregistrer les entrevues
      exten => _XXXX.,1,Set(FILENAME=${CDR(accountcode)}-${telkey}-${TIMESTAMP}) ; calculer le nom du fichier
      exten => _XXXX.,2,GotoIf($[ "${CDR(accountcode)}" != "" ]?3:5) ; si accountcode n'est pas vide, tester le telkey
      exten => _XXXX.,3,GotoIf($[ "${telkey}" != "" ) ]?4:5) ; si le telkey n'est pas vide lui aussi, enregistrer!
      exten => _XXXX.,4,Monitor(wav,${FILENAME},m) ; démarrer l'enregistrement
      exten => _XXXX.,5,Macro(dialout-trunk,1,${EXTEN},)
      exten => _XXXX.,6,Macro(dialout-trunk,2,${EXTEN},)
      exten => _XXXX.,7,Macro(outisbusy) ; No available circuits
    • add the following line before any context in extensions.conf ("op*" is the prefix of the IVR context files)
      #include "op*.conf"
    • add whatever context instructions are required for audio-visual monitoring
    • add whatever context instructions are required for playing audio files during interviews
    • add the custom robot contexts in /etc/asterisk
    • add the following files in /usr/bin
      cwAST.pl
      cwASTsiptozap.pl (make executable)
  • Robot installation
    • add the following files in /usr/bin
      cwAST.pl
      cwASTcall.pl (make executable)
      cwASTstocke.sh (make executable)
  • Server installation
    • create the MySQL data base and tables described in cwrobot.cgi
    • add a mount to /etc/fstab to create a location where to push interview recording .wav files into the CallWeb CATI server
      192.168.10.22:/mnt/wav /mnt/wav nfs rw 0 0
    • create the following directories
      /etc/cron.daily2
      /etc/cron.minute
    • place and make executable the following files in the following directories
      cwASTmovewav.pl in /etc/cron.daily2
    • add the following lines in in /etc/crontab
      30 23 * * * root /etc/cron.daily2/cwASTmovewav.pl
    • add the following lines in /etc/inittab
      # Faire tourner cwASTcall.pl dans toutes les configurations
      cw:2345:respawn:/usr/bin/cwASTcall.pl
    • reboot the server