Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Tue Mar 19, 2024 8:47 am
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: How to install CallBack daemon
PostPosted: Fri Apr 16, 2010 2:49 am 
Offline

Joined: Fri Apr 16, 2010 2:40 am
Posts: 5
Hello, everybody
I use A2Billing 1.7.0
I'm tried to install callback on CentOS5.4 but it doesn't work

# cp a2b-callback-daemon.rc /etc/init.d/a2b-callback-daemon
# chmod +x /etc/init.d/a2b-callback-daemon
# cp a2b_callback_daemon.py /usr/bin/a2b_callback_daemon

# service a2b-callback-daemon start

a2b_callback_daemon is stopped
Traceback (most recent call last):
File "/usr/bin/a2b_callback_daemon", line 49, in ?
import daemon
ImportError: No module named daemon
Starting a2b-callback-daemon: [FAILED]

please , help me.

thank you.


Top
 Profile  
 
 Post subject: Re: How to install CallBack daemon
PostPosted: Fri Apr 16, 2010 4:07 am 
Offline

Joined: Fri Apr 16, 2010 2:40 am
Posts: 5
i'm install a2billing to /usr/local/a2billing/
and i'm tried to install callback
# cd /usr/local/a2billing/CallBack/callback-daemon-py/callback_daemon
# cp a2b-callback-daemon.rc /etc/init.d/a2b-callback-daemon
# chmod +x /etc/init.d/a2b-callback-daemon
# vim /etc/init.d/a2b-callback-daemon
edit as
DAEMON='/usr/local/a2billing/CallBack/callback-daemon-py/callback_daemon/a2b_callback_daemon'
# cp a2b_callback_daemon.py a2b_callback_daemon
# vim database.py
edit as
edit as
remove line : from sqlalchemy.orm import sessionmaker
and insert from sqlalchemy.orm import session


# service a2b-callback-daemon start
a2b_callback_daemon is stopped
Starting a2b-callback-daemon: [ OK ]

but when stop service

Stopping a2b-callback-daemon: [FAILED]

or restart service

Stopping a2b-callback-daemon: [FAILED]
a2b_callback_daemon is stopped
Starting a2b-callback-daemon: [ OK ]

and when status service
service a2b-callback-daemon status
a2b_callback_daemon is stopped

i don't know , why it's start service ?


Top
 Profile  
 
 Post subject: Re: How to install CallBack daemon
PostPosted: Wed Jul 21, 2010 2:10 pm 
Offline

Joined: Wed Jun 30, 2010 9:46 pm
Posts: 17
Hi friends,

me to face the same problem please any one give us the solution for this :(

last two days :!: i am trying to resolve this issue but i cant .

Thanks,

gokul.,


Top
 Profile  
 
 Post subject: Re: How to install CallBack daemon
PostPosted: Fri Aug 27, 2010 4:43 am 
Offline

Joined: Sun Aug 22, 2010 6:18 am
Posts: 2
do you know before install A2billing software you must be installed
asterisk
libpri
zaptel
asterisk-addons


Top
 Profile  
 
 Post subject: Re: How to install CallBack daemon
PostPosted: Sat Oct 30, 2010 6:21 pm 
Offline

Joined: Tue Oct 06, 2009 12:23 pm
Posts: 23
Location: Austria
There is a bug in a2billing.conf for a2billing daemon:
Pls change:
pidfile = /var/run/a2billing/a2b-callback-daemon.pid
to
pidfile = /var/run/a2b-callback-daemon.pid


Top
 Profile  
 
 Post subject: Re: How to install CallBack daemon
PostPosted: Sun Nov 07, 2010 10:04 pm 
Offline

Joined: Sun Nov 07, 2010 10:00 pm
Posts: 253
Hello,
After all, I'm the must newbie here, so have to say hi to the community with my new installation asterisk 1.8, a2billing 1.8 in Ubuntu Lucid....

For me don't work this change, alfred37, I still getting the same:
Quote:
$./a2bĀ­callbackĀ­daemon restart
$No a2b-callback-daemon installed


Any idea?

Regards,


Top
 Profile  
 
 Post subject: Re: How to install CallBack daemon
PostPosted: Fri Dec 17, 2010 1:53 am 
Offline

Joined: Fri Apr 16, 2010 2:40 am
Posts: 5
hi, everybody

now, i'm resolvable

for CentOS5.4 & CentOS5.5 (A2Billing1.7.0, A2Billing1.8.0)
cause of the problem from sqlalchemy version less then 0.6.5

if sqlalchemy version less then 0.6.5, you delete sqlalchemy it. and run the command

# rm -rf /usr/lib/python2.4/site-packages/SQLAlchemy-0.3.4-py2.4.egg << delete
# easy_install sqlalchemy << new install
# service a2b-callback-daemon start << start service


Top
 Profile  
 
 Post subject: Re: How to install CallBack daemon
PostPosted: Tue Feb 08, 2011 4:25 pm 
Offline

Joined: Tue Feb 08, 2011 4:19 pm
Posts: 1
Hi for Ubuntu installation,

Install Init Script :
nano a2b-callback-daemon.debian
change DAEMON=/usrl/bin/a2b_callback_daemon
to DAEMON=/usr/local/bin/a2b_callback_daemon

cp a2b-callback-daemon.debian /etc/init.d/a2b-callback-daemon
chmod +x /etc/init.d/a2b-callback-daemon

update-rc.d a2b-callback-daemon defaults 40 60
* to remove update-rc.d -f a2b-callback-daemon remove

Start Daemon :
/etc/init.d/a2b-callback-daemon start


Top
 Profile  
 
 Post subject: Re: How to install CallBack daemon
PostPosted: Fri Feb 25, 2011 8:47 pm 
Offline

Joined: Sat Feb 02, 2008 3:06 am
Posts: 97
easy_install sqlalchemy
Searching for sqlalchemy
Best match: SQLAlchemy 0.6.6
Processing SQLAlchemy-0.6.6-py2.4.egg
Removing SQLAlchemy 0.4.8 from easy-install.pth file
Adding SQLAlchemy 0.6.6 to easy-install.pth file

this is what i use SQLAlchemy 0.6.6, i still have the same problem. is there a command to check the SQLAlchemy vertion


Top
 Profile  
 
 Post subject: Re: How to install CallBack daemon
PostPosted: Wed Feb 15, 2012 11:35 am 
Offline

Joined: Wed Feb 15, 2012 11:25 am
Posts: 1
command to check the SQLAlchemy ver.
rpm -qa | grep sqlalchemy


Top
 Profile  
 
 Post subject: Re: How to install CallBack daemon
PostPosted: Fri May 11, 2012 6:30 am 
Offline

Joined: Fri May 04, 2012 12:01 pm
Posts: 6
hi all,
This process works for me.....
First u need to install the packages -
asterisk
asterisk-addons
libpri
Dahadi (optional)
zaptel (optional)

Now follow the steps bellow -

yum -y install python-setuptools.noarch python-setuptools-devel MySQL-python
easy_install sqlalchemy

cd /usr/src/a2billing/Callback/callback-daemon-py/dist
tar -xvf callback_daemon-1.0.prod-r1528.tar.gz
cd callback_daemon-1.0.prod-r1528
python setup.py build
python setup.py bdist_egg
easy_install dist/callback_daemon-1.0.prod_r1528-py2.4.egg
cp /usr/src/a2billing/Callback/callback-daemon-py/dist/callback_daemon-1.0.prod-r1528/build/lib/callback_daemon/a2b-callback-daemon.rc /etc/init.d/a2b-callback-daemon
chmod +x /etc/init.d/a2b-callback-daemon

chkconfig --add a2b-callback-daemon
chkconfig a2b-callback-daemon on
service a2b-callback-daemon start

This is work for me.

Regards,
Faisal


Top
 Profile  
 
 Post subject: Re: How to install CallBack daemon
PostPosted: Wed Nov 27, 2013 8:05 pm 
Offline

Joined: Wed Nov 27, 2013 7:11 pm
Posts: 1
I have same question, I don't use
"cp /usr/src/a2billing/Callback/callback-daemon-py/dist/callback_daemon-1.0.prod-r1528/build/lib/callback_daemon/a2b-callback-daemon.rc /etc/init.d/a2b-callback-daemon" the command, I input
"ln -s /usr/src/a2billing/CallBack/callback-daemon-py/callback_daemon/a2b_callback_daemon.py /usr/bin/a2b_callback_daemon ",
it is working !


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


All times are UTC


Who is online

Users browsing this forum: No registered users and 2 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