Quote:
Thank you again. I as sorry to ask few questions again. I checked asterisk.conf and a2billing.conf for realtime variable and I couldn't find it.
Hello, I'm new to A2Billing too and we have almost the same setup. Mine is A2Billing 1.4.2.1 (Radix), Asterisk 1.4.22, CentOS 5.4. You can find the
realtime variable in Admin Panel > System Settings > Global List > Select Group --> global > Search
From there you will see the use_realtime variable and on the right, there is a button to edit it. You can choose Yes or No from the drop down in the edit page and then commit the changes.
Though I do not know what will be the result on your end. In my case, there was an option that appeared in Admin Panel > Customers > VoIP Settings:
Link to Generate on SIP/IAX Friends :
Realtime not active, you have to use the conf file for your system
SIP : GENERATE ADDITIONAL_A2BILLING_SIP.CONF
IAX : GENERATE ADDITIONAL_A2BILLING_IAX.CONF
When I clicked on those buttons, I was able to generate the config files and I was asked to reload Asterisk each time from the same panel. So I clicked on the reload link too. I checked from SSH afterwards and I could see that the 2 files from /etc/asterisk/ were already written:
additional_a2billing_iax.conf
additional_a2billing_sip.conf
These are my permissions, by the way:
Quote:
-rwxrwxrwx 1 apache apache 292 Jan 6 14:26 additional_a2billing_iax.conf
-rwxrwxrwx 1 apache apache 292 Jan 6 14:26 additional_a2billing_sip.conf
I still have problems with the permissions, though. I would not want all access to the files in /etc/asterisk (chmod -R 777 /etc/asterisk/), but it seems that this is the only way that I can write from A2Billing. I tried experimenting with chmod -R 666 or chmod -R 755 but A2Billing returns an error, saying that it could not open the files.
I also haven't tested if my configuration works, but if it doesn't then it might be a problem with my Asterisk installation already.