simple asterCRM installation guide for asterisk
for asterCRM 0.047beta
- Download asterCRM package from sf.net, unzip it and put all files/folders to your WEBroot folder
- Create the directories and move eventsdaemon scripts:
- astercc, asterccd, asterccdaemon are for users who would use astercc to catch asterisk call records
- eventdog.sh, eventsdaemon.pl are for users who would use eventsdaemon to catch asterisk AMI events
- Create the MySQL database and tables, asterCRM requires mysql 4.1 or above
- Update /etc/asterisk/manager.conf to enable Manager connections
- Modify astercrm.conf.php to fit your configuration
- Start Asterisk and daemons you use
- using eventsdaemon.pl (eventtype = event in astercrm.conf.php)
- using astercc (eventtype = curcdr in astercrm.conf.php)
- Set file&folder access
- Test
cd /usr/src
wget http://nchc.dl.sourceforge.net/sourceforge/asterisk-crm/astercrm-0.047beta.zip
unzip astercrm-0.047beta.zip
mv ./astercrm-0.047beta /var/www/html/astercrm
It is highly advised that the whole eventsdaemon directory be moved to a more secure location like /opt and out of the WEB root directory (in step 2)
in 0.047 beta, there’re several daemon scripts in the package:
Users could choose either method to use, the difference of these two methods could be found here
dialer.pl is for scheduler calls, but it’s not fully tested in 0.047beta yet
mkdir -p /opt/asterisk/scripts/eventsdaemon
mv /var/www/html/astercrm/eventsdaemon/* /opt/asterisk/scripts/eventsdaemon
chmod +x /opt/asterisk/scripts/eventsdaemon/eventsdaemon.pl
chmod +x /opt/asterisk/scripts/eventsdaemon/eventdog.sh
chmod +x /opt/asterisk/scripts/eventsdaemon/astercc
chmod +x /opt/asterisk/scripts/eventsdaemon/asterccd
chmod +x /opt/asterisk/scripts/eventsdaemon/asterccdaemon
mysqladmin -uyourmysqluser -pyourmysqlpasswd create astercrm
mysql -uyourmysqluser -pyourmysqlpasswd astercrm </var/www/html/astercrm/sql/astercrm.sqlhere we create the database named astercrm, you could use whatever db name you want use your configration to replace “yourmysqluser” and “yourmysqlpasswd”
[general]
enabled = yes
port = 5038
bindaddr = 0.0.0.0
;displayconnects = yes;the following line could be changed by yourself
[asterccdaemon]
secret = myasterccdaemon
read = system,call,log,verbose,command,agent,user
write = system,call,log,verbose,command,agent,user
deny=0.0.0.0/0.0.0.0
; only allow local access, if you want to run asterCRM on another server
; use your asterCRM ip to replace 127.0.0.1 or add a new line
permit=127.0.0.1/255.255.255.0
Mainly first you need set database connectoin parameters in section [database] so that you can login, then u can set other parameters via web pages.
There are two daemon modes you can choose, eventsdaemon mode or astercc mode.
open eventsdaemon.pl using some editor, then modify for database setting and AMI setting.
try start the eventsdaemon.pl using
/opt/asterisk/scripts/eventsdaemon/eventsdaemon.pl
if you could read:
“Message: Authentication accepted”
congratulations, your eventsdaemon works well
use ctrl + c to exit
or else, please check your database/AMI configration in eventsdaemon.plthen start eventsdaemon as a daemon:
/opt/asterisk/scripts/eventsdaemon/eventsdaemon.pl -dAt some point, for better performance, it may be desirable to delete old events from database, you can check eventsdaemon.pl for parameter “log_life”, which is for such purpose.
Also we provide a “watch dog”, it would help you restart eventsdaemon when it’s down, like asterisk restart.
Add this line to your start-up file
/opt/asterisk/scripts/eventsdaemon/eventdog.sh
so that everytime your server start, eventsdaemon would be loaded
modify /opt/asterisk/scripts/eventsdaemon/astercc.conf to fit your configuration
try start astercc using
/opt/asterisk/scripts/eventsdaemon/astercc
if you could read like following line:
“Connecting to mysql database on 127.0.0.1:
Database connection successful.
Connecting to asterisk on 127.0.0.1 port 5038:
Asterisk socket connection successful.
Check asterisk username & secret:
Success
Monitor Start:
…(some log message)…”
congratulations, your astercc works well then use ctrl + c to exit
or else, please check your database/AMI configration in astercc.confthen start astercc as a daemon:
/opt/asterisk/scripts/eventsdaemon/astercc -dStart up astercc daemons when system startup:
Note: This option can only fit to redhat-release system.
If you want astercc daemons to start automatically when you boot your
machine, you need to :cp /opt/asterisk/scripts/eventsdaemon/asterccd /etc/rc.d/init.d
chmod 755 /etc/rc.d/init.d/asterccd
chkconfig –add asterccd
Advice: Configure your astercc restart once everyday, it’s not necessary, but it ‘s good for your astercc operation.
for example: you want to restart astercc at 0′clock everyday,just do the following line as root.
crontab -e
add a line:
0 0 * * * /etc/rc.d/init.d/asterccd restart
end of this file, the first “0″ figures minutes and the second “0″ figures hours.a asterCC installation guid could be found here.
set upload foler permission, so that you can upload your csv/excel files then import data
chmod 777 /var/www/html/astercrm/uploadset configratoin file permission, so that you can modify asterCRM perference via web
chmod 777 /var/www/html/astercrm/astercrm.conf.php
open your browse, then enter this address
http://localhost/astercrm
or
http://YOUR-WEB-SERVER-ADDRESS/astercrm
login with admin/admin
January 2nd, 2009 at 7:07 pm
This is really great piece of program for Asterisk. Will it work with Asterisk 1.6?
January 3rd, 2009 at 3:47 am
i made some test, but unfortunately it doesnt support 1.6 well
January 28th, 2009 at 4:14 pm
Hi, i would like to have ONLY the CRM asterCRM installed, i’m not interested in the billing part, is that possible in this version or i should install an older one? thanks.
January 28th, 2009 at 9:25 pm
hi
u can just remove asterbilling directory, and dont start asterrc and astercclock daemon
January 31st, 2009 at 8:30 pm
Hi, first of all thanks for your answer. i have one more question, in the older asterCRM the popup was with any asterisk channel and now it only popup if i have an agent on a queue logged in (so the channel is AGENT/…), is that right? Is there an option to change this setting back as the older version of asterCRM? Thanks!
February 1st, 2009 at 6:45 am
hi, it works with no difference as the old version, just when u are using dynamic agent, you need to put the agent number in agent filed like put 5000 when it’s agent/5000, if u are not using dynamic agent, just leave the field blank
May 31st, 2009 at 7:39 am
Hi,
I am using vicidial in production of my callcenter.
I tried with astercc but made lot of mistakes looking for a site where I can found step by step installation process.
Thanks,
KD
June 9th, 2009 at 11:51 am
hi
what version are u using? if it’s astercc 0.1 +, we provide a auto installation script named ‘intall.sh’ or u can follow the README.txt to install manually
November 26th, 2009 at 5:44 pm
Hi,
Any procedures on installing astercc v0.13 on trixbox v.2.8?
December 4th, 2009 at 4:22 am
i didnt test, but it should work with all trixbox