Install asterBilling on your server
- Download and unzip the source
- Create the directories and move astercc daemon scripts:
- Create the MySQL database and table, asterCC need mysql 4.1 or above
- Update /etc/asterisk/manager.conf to enable Manager connections
- Modify /var/www/html/astercc/astercc.conf.php and /opt/asterisk/scripts/astercc/astercc.conf to fit your configration
- Start astercc daemons
- Set folder access
- Testing: browse to http://localhost/astercc
- Set your first booth
- go Reseller and add a reseller
- go Group add a group belong to the reseller
- go Clid add some clid for this group, then the account in asterisk with the clid would be billing as a user in this group
- go Account add a account, usertype could be groupadmin and belongs to the group you just added
- go Rate to Customer and add some rate for the group, if you dont select reseller or group, the rate could be the default rate all all resellers/groups
- login as groupadmin account, then you should see some box as the attachments.
- try make a call using the ip phone with the clid, you could see the calling and billing message in the box
cd /var/www/html
wget http://voxel.dl.sourceforge.net/sourceforge/astercc/astercc-0.09beta.zip
unzip astercc-0.09beta.zip
mv astercc-0.09beta astercc
mkdir -p /opt/asterisk/scripts/astercc/
mv /var/www/html/astercc/daemons/* /opt/asterisk/scripts/astercc/
chmod +x /opt/asterisk/scripts/astercc/astercc
chmod +x /opt/asterisk/scripts/astercc/asterrc
chmod +x /opt/asterisk/scripts/astercc/asterccd
mysqladmin -uyourmysqluser -pyourmysqlpasswd create astercc
mysql -uyourmysqluser -pyourmysqlpasswd asterccNote: here we create the database named astercc, you could use whatever db name you want use your configration to replace yourmysqluser and yourmysqlpasswd
Note: asterisk and astercc could be on different server
Add something like this to the manager.conf file:
[general]
enabled = yes
port = 5038
bindaddr = 0.0.0.0
;displayconnects = yes;the following line could be changed by yourself
[eventsdaemon]
secret = myeventsdaemon
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
/opt/asterisk/scripts/astercc/asterccd start
Note: If your astercc scripts in other directory,
you need to modify script path in CONFIGURATION SECTION of asterccd and asterccdaemon
to fit your script path (modify path of astercc,asterrc and asterccdaemon in asterccd;
modify path of asterccd and monitor log in asterccdaemon).Start 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/astercc/asterccd /etc/rc.d/init.d
chmod 755 /etc/rc.d/init.d/asterccd
chkconfig –add asterccdAdvice: 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.
chmod 777 /var/www/html/astercc/upload
browse to http://localhost/astercc
or http://YOUR-WEB-SERVER-ADDRESS/astercc
login with admin/admin
July 7th, 2009 at 6:36 pm
Hi, I have a problem with the step 6, because when i start the asterccd, this message appears:
astercc could not be started bad arg lenght for socket::pack_sockaddr_in, length is 0, should be 4 at /pearlapp/socket.pm line 376
asterrc could not be started,
asterccdaemon (pid 2405) already running
Could you please help me about this issue?
Thanks
July 12th, 2009 at 4:12 pm
how did u set in your astercc.conf?
July 14th, 2009 at 5:25 pm
Thanks for answer me, in astercc.conf , i just put this information:
[database]
dbtype=mysql
dbhost=127.0.0.1
dbname=astercc
dbport=3306
username=root
password=passw0rd
July 15th, 2009 at 9:18 am
[asterisk]
server = 127.0.0.1
port = 5038
username = admin
secret = amp111
did u set asterisk section?
March 7th, 2010 at 5:27 pm
Hello, i have problem with paypal payment : i have this message when i enable the paypal payment
the system does not support online payment.
PLease let me know if i miss somethings.
best regards.
March 8th, 2010 at 8:48 am
what message did you get? can you post on forums.astercc.org?