Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Tue Apr 23, 2024 6:51 pm
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: A2illing configuration parameters question
PostPosted: Fri Dec 18, 2009 7:15 pm 
Offline
User avatar

Joined: Mon Nov 16, 2009 9:26 pm
Posts: 30
Location: Kyiv, Ukraine
Hello,

I'm sorry if this question was asked here before... A2illing can be configured via a2billing.conf and via System Settings on web interface. My question is what takes precedence if the option is defined in both places?

Thanks.


Top
 Profile  
 
 Post subject: Re: A2illing configuration parameters question
PostPosted: Sat Dec 19, 2009 8:31 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
I don't think any options are duplicated between the DB driven settings and the text file.

Joe


Top
 Profile  
 
 Post subject: Re: A2illing configuration parameters question
PostPosted: Wed Dec 23, 2009 7:55 pm 
Offline
User avatar

Joined: Mon Nov 16, 2009 9:26 pm
Posts: 30
Location: Kyiv, Ukraine
Actually, the options can duplicate. And I faced an interesting fact. I have installed A2billing and Asterisk on my testing machine about month ago. Accidentally, I wrote different passwords in a2billing.conf and manager.conf. And I understood it only today! I did not know it for such a long time because I have a corect password for a2billing on a2billing web in config section. So, we can make a conclusion that in that case value from web has precedence. But I'm still not sure about other options.


Top
 Profile  
 
 Post subject: Re: A2illing configuration parameters question
PostPosted: Wed Dec 23, 2009 8:13 pm 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Are you sure you are not mixing up a 1.3 install with a 1.4 install.

In 1.3, the a2billing.conf was in /etc/asterisk/a2billing.conf, and in 1.4, it is to be found in /etc/a2billing.conf, and it should look like this:-

Code:
;
; A2Billing config file
;


; Global Database Setup - select the database type and authentication as required.

[database]
hostname = localhost
; port for postgres is 5432 by default
port =
user = a2bdbuser
password = a2bdbpassw
dbname = a2billing14
; dbtype setting can either be mysql or postgres
dbtype = mysql


; config for the daemon process
[daemon-info]
uid =
gid =
pidfile = /var/run/a2billing/a2b-callback-daemon.pid
;pidfile = ./a2b-callback-daemon.pid


; config for the logger
; article on http://www.red-dove.com/python_logging.html
[loggers]
keys=root,callbackLogger


[handlers]
keys=consoleHandler,FileHandler,RotatingFileHandler


[formatters]
keys=callbackFormatter


[logger_root]
;level=DEBUG
level=INFO
handlers=consoleHandler,RotatingFileHandler


[logger_callbackLogger]
;level=DEBUG
level=INFO
handlers=consoleHandler,RotatingFileHandler
qualname=callbackLogger
propagate=0


[handler_consoleHandler]
class=StreamHandler
;level=DEBUG
level=INFO
formatter=callbackFormatter
args=(sys.stdout,)


[handler_FileHandler]
class=FileHandler
level=DEBUG
formatter=callbackFormatter
args=('/var/log/a2billing/a2b-callback-daemon.log', 'a')
filename=/var/log/a2billing/a2b-callback-daemon.log
mode=a


[handler_RotatingFileHandler]
;class=handlers.RotatingFileHandler
class=handlers.TimedRotatingFileHandler
level=DEBUG
formatter=callbackFormatter
; TimedRotatingFileHandler
args=('/var/log/a2billing/a2b-callback-daemon.log',  'midnight', 1)


[formatter_callbackFormatter]
format="%(asctime)s - %(name)s - %(threadName)-10s - %(levelname)s - %(message)s"
datefmt=


Top
 Profile  
 
 Post subject: Re: A2illing configuration parameters question
PostPosted: Wed Dec 23, 2009 8:20 pm 
Offline
User avatar

Joined: Mon Nov 16, 2009 9:26 pm
Posts: 30
Location: Kyiv, Ukraine
Thank you!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 
Auto Dialer Software


All times are UTC


Who is online

Users browsing this forum: No registered users and 14 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group