Hi all. I am really tired of looking for a solution in this forum for integrating my A2Billing with Asterisk Real Time, so I need some help before killing me.
My configuration is the following:
-
OS: Cent OS
-
Asterisk 1.8.3.2
-
A2Billing 1.8.5
-
FreePBX 2.8.1.0
-
MySQL
-
Parameter “use_realtime” in A2Billing is “yes”
-
/etc/asterisk/extconfig.conf:
[settings]
sipusers => mysql,general,cc_sip_buddies
sippeers => mysql,general,cc_sip_buddies
iaxusers => mysql,general,cc_iax_buddies
iaxpeers => mysql,general,cc_iax_buddies
extensions => mysql,general,cc_sip_buddies
- /etc/asterisk/res_mysql.conf:
[global]
dbhost = 127.0.0.1
dbname = asterisk
dbuser = root
dbpass = XXX
dbport = 3306
[a2billing]
dbhost = 127.0.0.1
dbname = mya2billing
dbuser = root
dbpass = XXX
dbport = 3306
-
I am using the root user to access the databases
-
All my files in /etc/asterisk have 777 permissions.
-
In Asterisk console:
realtime mysql status
global connected to asterisk@127.0.0.1, port 3306 with username root for 58 minutes.
a2billing connected to mya2billing@127.0.0.1, port 3306 with username root for 58 minutes.
sip show peers
Name/username Host Dyn Forcerport ACL Port Status Realtime
8004410 (Unspecified) D N A 0 UNKNOWN
8005555 (Unspecified) D N A 0 UNKNOWN
2 sip peers [Monitored: 0 online, 2 offline Unmonitored: 0 online, 0 offline]
OBS: These sip peers where added manually in FreePBX.
FreePBX and A2Billing web interfaces are working fine.
So, my problem is: I add customers in A2Billing but they are not listed in FreePBX.
Also, I just enabled and monitored mysql.log file and after adding a customer, A2Billing doesn’t even try to connect to Asterisk DB to add some extensions and other things.
So, is A2Billing responsable for adding records in Asterisk DB or do I have to enable some Asterisk cron job?
I really tried to search the forum and trie some suggestions but it didn’t work.
Any help would be very useful.
Thank you.