How To Install contact-center

از ویکی پارس پویش
پرش به: ناوبری, جستجو
                                                 INSTALL

Easy Way!

First of all you should create an image of the stable server (currently 192.168.1.24). We name this file root.tar.gz. You can find the document here: HowToInstall/CreateImage

Boot the server via a live cd (plux, ubuntu desktop, ...) In case it is plux, select IBSng installation and follow the steps till you see the message about enabling ssh (after IP setting) (If you use ubuntu desktop, you can choose live and then start a shell)

Now you can continue installing by either doing SSH or inserting your cool disk.

(Note: If you use ubuntu, you should install openssh-server)

SSH

ssh to the server

    fdisk <hard>: delete partitions, create 2 primary partitions (one for OS and other data, another for swap)
    mkfs.ext3 <main partition>
    mkdir /mnt/hard
    mount <main partition> /mnt/hard -t ext3

You should copy root file to the server(In this section ِyou can set ip/gw ..continue from ssh connection ):

   scp root.tar.gz root@<server IP>:/mnt/hard
   tar xzf <path to root.tar.gz> -C /mnt/hard
   mount /dev /mnt/hard/dev -o bind
   chroot /mnt/hard
   rm -f /boot/grub/menu.lst
   update-grub
   grub-install <hard> --recheck

Attention: If your hard is known as /dev/sda, you have to put /dev/sda here; not /dev/sda1

  edit /etc/network/interfaces
  exit
  umount /mnt/hard/dev
  umount /mnt/hard
  reboot

If you have problem during installation procedure, please reat Troubleshooting part Please read After Installation part

via Cool Disk

If you use Cool Disk, follow these steps:

After setting IP, press Alt + F2 to start a shell

  modprobe usb-storage
  mkdir /mnt/usb
  mount <cool disk partition> /mnt/usb


  fdisk <hard>: delete partitions, create 2 primary partitions (one for OS and other data, another for swap)
  mkfs.ext3 <main partition>
  mkdir /mnt/hard
  mount <main partition> /mnt/hard -t ext3
  tar xzf <path to root.tar.gz> -C /mnt/hard
  mount /dev /mnt/hard/dev -o bind
  chroot /mnt/hard
  rm -f /boot/grub/menu.lst
  update-grub
  grub-install <hard> --recheck

Attention: If your hard is known as /dev/sda, you have to put /dev/sda here; not /dev/sda1

  edit /etc/network/interfaces
  exit
  umount /mnt/hard/dev
  umount /mnt/hard
  umount /mnt/usb
  reboot

After Installation

   Do ssh to the server. Its password is "parspooyesh". Change it.
   See web page in order to check services. Default username and password are "admin". You can check all services through "پیکر بندی سامانه".
   mkswap the swap directory that you created before, and add this line to /etc/fstab if it there is not:
   <swap partition>       none                  swap defaults 0 0

Troubleshooting

   If server doesn't boot after installation, it may be due to the problems below:
When you ran grub-install command, instead of hard name, you entered partition name (like /dev/sda1 instead of /dev/sda). 

You may correct the problem by booting the server via Live CD again. The hard name is not the same as hard name in grub. You can edit grub (hit e on first line in grub page), and change the partition name. For example,if it is /dev/hda1, you can change it to /dev/sda1. Remember you have to change the /etc/fstab after booting up the server.

Hard Way! =

Installing of CC is so easy but because it use bunch of tools and apps seems is hard !

Anyway I write a quick how to install, it will be update soon

Steps

pre install : open /etc/httpd/conf/httpd.conf and change <AllowOverride? None> to <AllowOverride? All>

Install freepbx :

   cd /home/contactcenter/freepbx/core
   ./install_amp
   cd /home/contactcenter/freepbx/modules/
   cp -r * /var/www/html/admin/modules/
   rm /etc/trixbox/httpdconf/trixbox.conf

Install agents_admin

   cd /home/contactcenter/agents_admin
   ./install.sh 

Install Asterisk Listener

   yum install MySQL-python
   cd /home/contactcenter/misc/addons/asterisk-listener
   make install 
   chkconfig --level 35 asterisk_listener on
   cd /usr/local/asterisk_listener/conf
   cp asterisk_listener.conf.default asterisk_listener.conf #( Edit this file if you want ! but always does not need any change )

Install Queue Monitor :

   cd /home/contactcenter/misc/addons/queue_monitor
   ./install

Install sysinfo :

       cd /home/contactcenter/misc/addons/sysinfo
       ./install 

Install fax


  # Install Fax Server
       yum -y install iaxmodem hylafax ImageMagick netpbm-progs
       /usr/sbin/faxsetup #enter defaults just in Q: Should I run faxmodem for each configured modem [yes]? type: no
       cd /etc/iaxmodem
       ;#####################################START CAT
       cat > ttyIAX0
       device /dev/ttyIAX0 ;each line should have it's own device node!
       owner uucp:uucp
       mode 660
       port 4570 ;each line should have it's own port number!
       refresh 300
       server 127.0.0.1
       peername 802 ;this is the local extension number in FreePBX (create it!)
       secret milad ;password for the extension
       cidname Fax1
       cidnumber 88241829
       codec alaw
       ;#########################################END CAT
       /etc/init.d/iaxmodem restart
 # Install Fax GUI
       pear install Mail Net_SMTP Mail_mime MDB2_driver_mysql fileinfo
       yum install php-pecl-Fileinfo
       cd /home/contactcenter/misc/ccfax
       mysql -u root -p asterisk < create_user.sql
       mysql -u root -p asterisk < create_tables.sql
       mysql -u root -p asterisk < ccfax-sql-patch.sql
       cp -r avantfax /var/www/html/
       chmod -R 777 /var/www/html/ccfax/tmp/ /var/www/html/ccfax/faxes/
       ln -s /var/www/html/ccfax/includes/faxrcvd.php /var/spool/hylafax/bin/faxrcvd.php
       ln -s /var/www/html/ccfax/includes/dynconf.php /var/spool/hylafax/bin/dynconf.php
       ln -s /var/www/html/ccfax/includes/notify.php /var/spool/hylafax/bin/notify.php
       cd /var/spool/hylafax/etc/
       cp config.ttyIAX config.ttyIA0
       cat >> config.ttyIA0
       #
       ## AvantFAX configuration
       #
       FaxrcvdCmd:     bin/faxrcvd.php
       DynamicConfig:  bin/dynconf.php
       UseJobTSI:      true
       #######END CAT
       cat >>  /var/spool/hylafax/etc/config
       #
       ## AvantFAX configuration
       #
       NotifyCmd:      bin/notify.php
       #######END CAT
       cat >> /etc/inittab
       #
       t2:23:respawn:/usr/sbin/faxgetty ttyIAX0
       #######END CAT
       mv /usr/bin/faxcover /usr/bin/faxcover.old
       ln -s /var/www/html/ccfax/includes/faxcover.php /usr/bin/faxcover
       ln -s /usr/share/file/magic* /usr/share/misc/
       cat >> /etc/crontab
       # runs once an hour to update the phone book
       0 * * * * /var/www/html/ccfax/includes/phb.php
       # runs once a day to remove old files
       0 0 * * * /var/www/html/ccfax/includes/avantfaxcron.php -t 2
       cat >> /etc/sudoers
       apache ALL = NOPASSWD: /sbin/reboot, /sbin/halt, /usr/sbin/faxdeluser, /usr/sbin/faxadduser -u * -p * *
       chown asterisk.asterisk -R ./includes/templates/main_theme/templates_c  ./includes/templates/admin_theme/templates_c


ابزارهای شخصی

گویش‌ها
فضاهای نام
عملکردها
گشتن
جعبه‌ابزار