Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Apr 25, 2024 11:49 pm
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Issue in installing callback-daemon
PostPosted: Sun Jan 13, 2008 7:07 am 
Offline

Joined: Sun Dec 09, 2007 3:40 pm
Posts: 13
I'd followed the instructions as in the document of configuring call back. But when i try to start call back it cannot start and i get the message below. Can anybody please help? Thanks in advance

[root@asterisk callback-daemon]# service a2billing-callback-daemon start
Can't locate Config/IniFiles.pm in @INC (@INC contains: /var/lib/asterisk/a2billing/callback-daemon/lib /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.7/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.6/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /var/lib/asterisk/a2billing/callback-daemon/a2billing-callback-daemon line 10.
BEGIN failed--compilation aborted at /var/lib/asterisk/a2billing/callback-daemon/a2billing-callback-daemon line 10.
Starting a2billing-callback-daemon: [FAILED]
[root@asterisk callback-daemon]#


Top
 Profile  
 
 Post subject: Re: Issue in installing callback-daemon
PostPosted: Sun Jan 13, 2008 11:37 am 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
pradi wrote:
Can't locate Config/IniFiles.pm in @INC
As the error clearly states, you're missing Perl support for Config::IniFiles. The callback installation instructions describe how to install this library.


Top
 Profile  
 
 Post subject: Re: Issue in installing callback-daemon
PostPosted: Sun Jan 13, 2008 1:44 pm 
Offline

Joined: Sun Dec 09, 2007 3:40 pm
Posts: 13
Thanks Starvos. There was some issue with the Perl module Config::IniFiles. After I reinstalled it is working now. Thanks a lot for the help


Top
 Profile  
 
 Post subject: Re: Issue in installing callback-daemon
PostPosted: Wed Jan 30, 2008 10:53 pm 
Offline

Joined: Sun Jan 20, 2008 1:58 am
Posts: 72
stavros wrote:
pradi wrote:
Can't locate Config/IniFiles.pm in @INC
As the error clearly states, you're missing Perl support for Config::IniFiles. The callback installation instructions describe how to install this library.

Sorry for the stupid question .... but where are the callback installations instructions?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 30, 2008 11:01 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
From memory, in the addons/Doc folder of the A2B distribution.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 30, 2008 11:05 pm 
Offline

Joined: Sun Jan 20, 2008 1:58 am
Posts: 72
Thanks, that was it. I didn't think of looking in the addons folder :)


Top
 Profile  
 
 Post subject: Re: Issue in installing callback-daemon
PostPosted: Mon Mar 31, 2008 5:43 pm 
Offline

Joined: Fri Nov 30, 2007 6:21 am
Posts: 7
pradi wrote:
Thanks Starvos. There was some issue with the Perl module Config::IniFiles. After I reinstalled it is working now. Thanks a lot for the help


Hi Pradi, how did u solve the problem of callback-daemon installation? i am also getting the same error message that u got. Could you please post here the steps of perl modules toward solving it?

thanking you in advance. :D


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 01, 2008 9:56 pm 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Here's an excerpt from a script I use to install A2Billing, this part deals with the installation of callback

Quote:
mkdir /var/lib/asterisk/a2billing/
mv /usr/src/a2billing/CallBack/callback-daemon /var/lib/asterisk/a2billing/

echo "*******************************************************************"
echo "Now installing callback"
echo "-------------------------------------------------"
echo "Go with the defaults in the following script - when prompted, but in your country"
echo ""
echo ""
echo "When you see the CPAN prompt, and the script has halted, you will need to type the following"
echo "SO TAKE NOTES"
echo "*******************************************************************"
echo "*******************************************************************"
echo "install Config::IniFiles"
echo "reload"
echo "quit"
echo "*******************************************************************"

sleep 10

pear install --alldeps SOAP-0.9.4
perl -MCPAN -e shell
cd /var/lib/asterisk/a2billing/callback-daemon/
install --owner=root --group=root --mode=700 a2billing-callback-daemon.rc /etc/rc.d/init.d/a2billing-callback-daemon
chkconfig --add a2billing-callback-daemon && chkconfig a2billing-callback-daemon on
service a2billing-callback-daemon start
[/quote]


Top
 Profile  
 
 Post subject: Issue in installing callback-daemon
PostPosted: Wed Apr 02, 2008 7:45 am 
Offline

Joined: Fri Nov 30, 2007 6:21 am
Posts: 7
Jroper,

Thanks for the excerps. I follwed exactly your steps got following result.

cpan> install Config::IniFiles
Config::IniFiles is up to date.

cpan> reload
cpan re-evals the CPAN.pm file
index re-reads the index files

cpan> quit
Terminal does not support GetHistory.
Lockfile removed.
execvp: Permission denied
Starting a2billing-callback-daemon: [FAILED]

I dont know what do now. :?. Could you please instruct me where to tweak again to fix execvp: Permission denied??


Top
 Profile  
 
 Post subject: Re: Issue in installing callback-daemon
PostPosted: Wed Apr 02, 2008 4:48 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
dancel wrote:
Could you please instruct me where to tweak again to fix execvp: Permission denied??
Probably in your SELinux configuration.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 02, 2008 4:53 pm 
Offline
User avatar

Joined: Mon Apr 30, 2007 6:43 am
Posts: 1060
Location: Canada
Will it work if you do the relevant steps manually? (no the echo ...)


Top
 Profile  
 
 Post subject: Issue in installing callback-daemon
PostPosted: Thu Apr 03, 2008 3:13 am 
Offline

Joined: Fri Nov 30, 2007 6:21 am
Posts: 7
stavros wrote:
dancel wrote:
Could you please instruct me where to tweak again to fix execvp: Permission denied??
Probably in your SELinux configuration.


Thanks for quick response. I have checked the SELinux config. It has been disabled. I believe it must be disabled.

Here is my selinux config:

[root@asterisk1 ~]# nano /etc/selinux/config
GNU nano 1.2.4 File: /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
SELINUXTYPE=targeted

Added after 4 minutes:

asiby wrote:
Will it work if you do the relevant steps manually? (no the echo ...)


I shall be greatful if you paste here the manual steps. :D


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 03, 2008 5:03 am 
Offline
User avatar

Joined: Mon Apr 30, 2007 6:43 am
Posts: 1060
Location: Canada
I was referring to the steps in jroper's post
Code:
# mkdir /var/lib/asterisk/a2billing/
# mv /usr/src/a2billing/CallBack/callback-daemon /var/lib/asterisk/a2billing/
# perl -MCPAN -e shell
cpan> install Config::IniFiles
cpan> reload
cpan> quit
# cd /var/lib/asterisk/a2billing/callback-daemon/
# install --owner=root --group=root --mode=700 a2billing-callback-daemon.rc /etc/rc.d/init.d/a2billing-callback-daemon
# chkconfig --add a2billing-callback-daemon && chkconfig a2billing-callback-daemon on
# service a2billing-callback-daemon start


Top
 Profile  
 
 Post subject: Issue in installing callback-daemon
PostPosted: Thu Apr 03, 2008 9:04 am 
Offline

Joined: Fri Nov 30, 2007 6:21 am
Posts: 7
It will be useful to quote here that I am using Trixbox2.3 Asterisk 1.2 a2billing 1.3. I am still struggling to install a2billing-callback-daemon. Eventually still not successful, please help.

I successfully install perl-DBD-Pg but when i try to install SOAP-0.9.4. I got following result

[root@asterisk1 callback-daemon]# pear install --alldeps SOAP-0.9.4
HTTP error, got response: HTTP/1.1 410 Gone
Didn't receive 200 OK from remote server. (HTTP/1.1 410 Gone)
[root@asterisk1 callback-daemon]#


after that I did following manual steps of asiby and jroper:

[root@asterisk1 ~]# perl -MCPAN -e shell
CPAN: File::HomeDir loaded ok (v0.69)

cpan shell -- CPAN exploration and modules installation (v1.9205)
ReadLine support enabled

cpan[1]> install Config::IniFiles
CPAN: Storable loaded ok (v2.13)
Going to read /root/.cpan/Metadata
Database was generated on Tue, 01 Apr 2008 12:31:06 GMT
Config::IniFiles is up to date (2.38 ).

cpan[2]> reload
cpan re-evals the CPAN modules
index re-reads the index files

cpan[3]> quit
Lockfile removed.

[root@asterisk1 ~]# cd /var/lib/asterisk/a2billing/callback-daemon/
[root@asterisk1 callback-daemon]# install --owner=root --group=root --mode=700 a2billing-callback-daemon.rc /etc/rc.d/init.d/a2billing-callback-daemon
[root@asterisk1 callback-daemon]# chkconfig --add a2billing-callback-daemon && chkconfig a2billing-callback-daemon on
[root@asterisk1 callback-daemon]# service a2billing-callback-daemon start
execvp: Permission denied
Starting a2billing-callback-daemon: [FAILED]
[root@asterisk1 callback-daemon]#

PLEASE HELP!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 03, 2008 9:37 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi

Can you check you have executable permisions on

/etc/rc.d/init.d/a2billing-callback-daemon

Joe


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page 1, 2  Next
VoIP Billing solution


All times are UTC


Who is online

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