There are a thousand ways this can go wrong, and every one of them has a slightly different solution. No one is going to start down a list telling you “Try this” a hundred times.
I started from scratch by following the link in my first post. FreePBX is not able to write to my remote db hosted at godaddy. If i log in via putty, i can from the mysql command line, connect to my remote db and read and write to my remote table.
in FreePBX under Advanced Settings Details, I changed all 3 values to Yes and under “Remote CDR Database” I entered all the correct information about my remote mysql server,
First i was pointing to a different mysql server but after responding to a FreePBX alert, ref to firewall, i lost connection. Im new to FreePBX and cant find that firewall section. I remember it had only 1 item and made ref to eth0 and being private, local, internet and a couple more. I selected the recommended value and i believe that’s when remote cdr stopped working. I then switch to my godaddy mysql server, which is where i really needed, and from mysql command line it works but FreePBX is not writing to my remote cdr.
There is nothing in the GUI that wiill reasonably help you,
You need to set a new mysq/whatever backend user that has the correct ACL’s to connect to and from the remote server, this is pertonent to sny cdr backend, odbc/postgres/maria /mssql
thanks dicko. Remember i mentioned that via putty I log in, open mysql console, and connect to my remote mysql db, open my cdr Table, read the table and insert a new record. Which tells me i’m using the right credentials and the mysql database hosted at GoDaddy allows remote users.
Is there a .conf file i have to modify besides /etc/odbc.ini ?
Eureka !! Victory is ours !! (People should say Eureka more often)
Thanks dicko. The problem was that I have two cdr tables in that remote db. One is called cdr and the other cdr_asterisk. The second i created based on the asterisk’s cdr Table structure. The first was created years ago when I used to write telephony software using Dialogic cards. FreePBX opend cdr by default and it has a different structure.
Now, I make a call, FreePBX answers and when i hangup it creates and empty record in cdr table at the remote server.