Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Apr 25, 2024 2:51 pm
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: external database
PostPosted: Fri Apr 07, 2006 2:33 am 
Hi guys,

Has anyone of you used external database for a2billing? if so what is the advantage and disadvantage?

I plan to have a dedicated database server for a2billing, and have a few * boxes and I would like to them to share the same a2billing database, so if one of them is down the others can still be functional.

Thanks in advanced.


Top
  
 
 Post subject:
PostPosted: Sat Apr 08, 2006 3:23 pm 
Advice please?? Hmm.. i guess we all are using local databases for a2billing setup huh? Has ony tried external database before??

Please let me know. Thanks


Top
  
 
 Post subject:
PostPosted: Tue Apr 11, 2006 1:33 am 
I too am wondering if I can have multiple asterisk boxes running a2 off of an external database? And how I would go about doing that.

Thanks


Top
  
 
 Post subject:
PostPosted: Sat Apr 15, 2006 2:27 pm 
Offline

Joined: Sat Apr 15, 2006 2:26 pm
Posts: 87
Location: Germany
Anonymous wrote:
I too am wondering if I can have multiple asterisk boxes running a2 off of an external database? And how I would go about doing that.

Thanks

well I do use MySQL database on a server other than one where Asterisk/a2billing is running. What's a big deal? I haven't tested it with 2 or more Asterisk yet, but I do not foresee any problem here.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 31, 2006 7:41 am 
Offline

Joined: Sat Jul 29, 2006 5:35 am
Posts: 11
Location: Philippines
could please post your steps here

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 28, 2007 4:40 pm 
Offline

Joined: Sun Oct 28, 2007 4:23 pm
Posts: 1
I have a pair of external MySQL databases running in a replication scenario for redundancy sitting on the inside network of my environment. On the Asterisk side it's a simple matter of pointing your a2billing.conf to the IP/Hostname of your DB, ensuring your database can accept external connections through the grant privileges and of course making sure iptables is not blocking port 3306.

On v1.3 you would add external access privileges something like this in MySQL.

GRANT ALL PRIVILEGES ON a2billing.* TO 'a2admin'@'192.168.1.100' IDENTIFIED BY 'a2adminpassword' WITH GRANT OPTION;

Moving sip/iax-friends can be done with rsync to copy over to your Asterisk server(s).


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 26, 2007 7:16 pm 
Offline

Joined: Thu Nov 22, 2007 12:01 pm
Posts: 10
Hi I'm a neobie in a2billing,

I want to have this setup on my trixbox two...

Trixbox
IP address : 192.168.0.XXX
ran A2Billing and Free PBX

Fedora 8
IP address : 192.168.0.YYY
ran Mysql server

All daemon work fine and I made the wrote here and i receive this mesg when I try to log in my a2b server:

Warning: mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on '192.168.0.YYY' (113) in /var/www/html/A2Billing_UI/lib/adodb/drivers/adodb-mysql.inc.php on line 358
Connection failed

Please help....

Added after 4 minutes:

I open the port 3360 on my fedora 8 server to allow external connexion on mysql server.... same thing. :(


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 26, 2007 7:29 pm 
Offline

Joined: Mon May 29, 2006 7:07 pm
Posts: 287
Location: Denver
hi, make sure you have set user permissions on Fedora 8 mysql.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 26, 2007 7:30 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
I'm not expert on MySQL but I would imagine you have to grant access to the username/IP address combination as detailed in gcall's post that you repled to.
You need to get to the stage where:
Code:
mysql --host=192.168.0.YYY --user=a2badmin -p
from 192.168.0.XXX logs in successfully before A2B will work.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 27, 2007 10:03 am 
Offline

Joined: Thu Nov 22, 2007 12:01 pm
Posts: 10
Ok Guys, Many tahks for your quick replys to my preocupation.
I will test it and let you know...

Mery christmas to all ;)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 28, 2007 2:53 pm 
Offline

Joined: Thu Nov 22, 2007 12:01 pm
Posts: 10
Its work now... Thanks... :)

Here are the change I made:

My Trixbox server with A2B installed use the IP 192.168.0.XXX and my Fedora 8 server with Mysql installed use the IP 192.168.0.YYY.

A2B need to use the Fedora 8 mysql server. so I create a2billinguser with the GRANT PRIVILEGES on my F8 mysql database like this:

[Trixbox1.local~]#echo "GRANT ALL PRIVILEGES ON mya2billing.* TO 'a2billinguser'@'192.168.0.XXX' IDENTIFIED BY 'a2billing' WITH GRANT OPTION;" | mysql -p

for to be able to login in mya2billing database on my local server (Fedora 8):
[fedora@localhost]#echo "GRANT ALL PRIVILEGES ON mya2billing.* TO 'a2billinguser'@'localhost' IDENTIFIED BY 'a2billing' WITH GRANT OPTION;" | mysql -p

I try to log into mysql server from my trixbox and its worked.

Modify a2billing.conf to use external database:

[Trixbox1.local~]#vi /etc/asterisk/a2billing.conf
[database]
hostname = 192.168.0.YYY
port = 5432
user = a2billinguser
password = a2billing
dbname = mya2billing
dbtype = mysql

Restart all service:
service mysqld restart
service httpd restart

Test... GOOOD!!!
;)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 
VoIP Billing solution


All times are UTC


Who is online

Users browsing this forum: No registered users and 30 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group