Hey guys awesome software i have it running and love it and now want to offer call back but am having a number of difficulties configuring it for some reason....
i must have missed something i followed the instructions.
asiby wrote:
I was wondering if someone could explain/more detail about the following step, i believe i carried it out successfully but am unsure i know i could just restart the box but its in use 24/7 not possible and i am having issues else where.
Quote:
34 CHKCONFIG : RUNLEVEL FILES
35 Each service which should be manageable by chkconfig needs two or more commented lines added to its init.d script. The first line
36 tells chkconfig what runlevels the service should be started in by default, as well as the start and stop priority levels. If the
37 service should not, by default, be started in any runlevels, a - should be used in place of the runlevels list. The second line
38 contains a description for the service, and may be extended across multiple lines with backslash continuation.
39
40 you may need to check the priority of postgresql or mysql through :
41 ls -la /etc/rc3.d/
42
43 then set the priority of the runlevel accordingly, edit a2billing-callback-daemon.rc
44 # chkconfig: levels S K
45 in our script : # chkconfig: 2345 80 80
The main issue that i am having is that when i start the daemon i receive the following error message:
Code:
root@asterisk1 callback-daemon]# a2billing-callback-daemon
Can't call method "val" on an undefined value at /usr/local/bin/a2billing-callback-daemon line 25.
Line 25 is the DB section of the conf file...
Here is a copy of my a2billing-callback-daemon global and DB section:
Code:
######################### GLOBALS ########################
my $path_daemon = "/var/lib/asterisk/a2billing/callback-daemon/";
my $daemon = "CallBack-Daemon";
######################### READ THE CONFIG FILE ########################
my $conf_file = "/etc/asterisk/a2billing.conf";
# Read the config file
my $cfg = Config::IniFiles->new( -file => $conf_file );
######################### DB PARAMETER ########################
my $dbname = $cfg->val('database', 'dbname');
my $dbhost = $cfg->val('database', 'hostname');
my $dbport = $cfg->val('database', 'port');
my $login = $cfg->val('database', 'user');
my $pwd = $cfg->val('database', 'password');
my $dbtype = $cfg->val('database', 'dbtype');
Here are the file permissions for the a2billing.conf
-rwxrwxrwx 1 asterisk asterisk 23248 Jun 18 12:05 a2billing.conf
Can anyone see something out of the ordinary i have no idea why it cannot pull the information, i replace the database values within the a2billing-callback-daemon with the real values and it gave another error message but dont have it on hand but can get it...
Help is greatly appreciated