Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Sun Apr 05, 2020 12:06 pm
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: How to setup step by step daemon & callback
PostPosted: Tue Nov 16, 2010 7:07 pm 
Offline

Joined: Sat Mar 07, 2009 8:18 pm
Posts: 27
Hello,
I know you have been explaining this for while now but I was trying to dig also for while and follow your topic but still not working (no lucky for me :)) to be able to setup daemon for call back. I just installed PAIF 1.7.5 and A2B 1.7.1 everything is working fine and I'm trying to setup a callback with a2billing-cid-callback in the GUI and context I know what to do but I'm not able to make daemon work. If someone can point me in the right topic or give me a step by step instruction I will very appreciate that. Also I did install my a2billing in the following directory: /usr/local/src/portal/
Thank you for your help.


Top
 Profile  
 
 Post subject: Re: How to setup step by step daemon & callback
PostPosted: Tue Nov 16, 2010 11:58 pm 
Offline

Joined: Wed Mar 31, 2010 3:45 am
Posts: 132
Location: São Paulo
I modified an existing script and it works for me
you can try it with if you have Cent OS

Code:
# Call back daemon (only for Call backs)
## from 1.8.1
LOAD_LOC=/usr/local/src/a2billing/CallBack/callback-daemon-py
   
yum -y install python-setuptools.noarch MySQL-python
easy_install sqlalchemy

cd $LOAD_LOC/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 $LOAD_LOC/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
## THE END


Top
 Profile  
 
 Post subject: Re: How to setup step by step daemon & callback
PostPosted: Wed Nov 17, 2010 12:18 am 
Offline

Joined: Sat Mar 07, 2009 8:18 pm
Posts: 27
hello renatofb,
Thank you for your fast respond and willing to help. I'm trying to follow up the step you gave me, but I'm have a issues when run the command "python setup.py build" I have an output error on 3 line running build
running build_py
package init file 'callback_daemon/__init__.py' not found (or not a regular file)
creating build
creating build/lib
creating build/lib/callback_daemon
copying callback_daemon/a2b_callback_daemon.py -> build/lib/callback_daemon
copying callback_daemon/manager.py -> build/lib/callback_daemon
copying callback_daemon/database.py -> build/lib/callback_daemon
copying callback_daemon/daemon.py -> build/lib/callback_daemon
copying callback_daemon/a2b-callback-daemon.debian -> build/lib/callback_daemon
copying callback_daemon/a2b-callback-daemon.rc -> build/lib/callback_daemon

and when keep going also here is what I have as issues:

python setup.py bdist_egg
running bdist_egg
running egg_info
writing callback_daemon.egg-info/PKG-INFO
writing top-level names to callback_daemon.egg-info/top_level.txt
writing dependency_links to callback_daemon.egg-info/dependency_links.txt
writing entry points to callback_daemon.egg-info/entry_points.txt
package init file 'callback_daemon/__init__.py' not found (or not a regular file)
reading manifest file 'callback_daemon.egg-info/SOURCES.txt'
writing manifest file 'callback_daemon.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-i686/egg
running install_lib
running build_py
creating build/bdist.linux-i686
creating build/bdist.linux-i686/egg
creating build/bdist.linux-i686/egg/callback_daemon
copying build/lib/callback_daemon/a2b_callback_daemon.py -> build/bdist.linux-i686/egg/callback_daemon
copying build/lib/callback_daemon/manager.py -> build/bdist.linux-i686/egg/callback_daemon
copying build/lib/callback_daemon/database.py -> build/bdist.linux-i686/egg/callback_daemon
copying build/lib/callback_daemon/daemon.py -> build/bdist.linux-i686/egg/callback_daemon
copying build/lib/callback_daemon/a2b-callback-daemon.rc -> build/bdist.linux-i686/egg/callback_daemon
copying build/lib/callback_daemon/a2b-callback-daemon.debian -> build/bdist.linux-i686/egg/callback_daemon
byte-compiling build/bdist.linux-i686/egg/callback_daemon/a2b_callback_daemon.py to a2b_callback_daemon.pyc
byte-compiling build/bdist.linux-i686/egg/callback_daemon/manager.py to manager.pyc
byte-compiling build/bdist.linux-i686/egg/callback_daemon/database.py to database.pyc
byte-compiling build/bdist.linux-i686/egg/callback_daemon/daemon.py to daemon.pyc
Creating missing __init__.py for callback_daemon
byte-compiling build/bdist.linux-i686/egg/callback_daemon/__init__.py to __init__.pyc
creating build/bdist.linux-i686/egg/EGG-INFO
copying callback_daemon.egg-info/PKG-INFO -> build/bdist.linux-i686/egg/EGG-INFO
copying callback_daemon.egg-info/SOURCES.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying callback_daemon.egg-info/dependency_links.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying callback_daemon.egg-info/entry_points.txt -> build/bdist.linux-i686/egg/EGG-INFO
copying callback_daemon.egg-info/top_level.txt -> build/bdist.linux-i686/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating 'dist/callback_daemon-1.0.prod_r1528-py2.4.egg' and adding 'build/bdist.linux-i686/egg' to it
removing 'build/bdist.linux-i686/egg' (and everything under it)

and finally I have this one

easy_install dist/callback_daemon-1.0.prod_r152-py2.4.egg
error: Not a URL, existing file, or requirement spec: 'dist/callback_daemon-1.0.prod_r152-py2.4.egg'

Could you one more time take a look my case and see if I'm doing something wrong or maybe because I'm using the different direction (usr/local/src/portal/) thank you for help.


Top
 Profile  
 
 Post subject: Re: How to setup step by step daemon & callback
PostPosted: Wed Nov 17, 2010 7:52 pm 
Offline

Joined: Wed Mar 31, 2010 3:45 am
Posts: 132
Location: São Paulo
take a look at the script I gave you.

you can replace directory in this line without a problem
Code:
LOAD_LOC=/usr/local/src/a2billing/CallBack/callback-daemon-py


thos messages did not avoid me from starting callback
I believe that is a problem with callback itself I never got rid of that message.

try manually start service after you had installed

service a2b-callback-daemon start


Top
 Profile  
 
 Post subject: Re: How to setup step by step daemon & callback
PostPosted: Wed Nov 17, 2010 8:29 pm 
Offline

Joined: Sat Mar 07, 2009 8:18 pm
Posts: 27
hello,
Thank you for your follow up, I did try to ignore the msg and go all the way to the end but daemon-callback failed to start:

service a2b-callback-daemon start
a2b_callback_daemon is stopped
Traceback (most recent call last):
File "/usr/bin/a2b_callback_daemon", line 7, in ?
sys.exit(
File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 236, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 2097, in load_entry_point
return ep.load()
File "/usr/lib/python2.4/site-packages/pkg_resources.py", line 1830, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "build/bdist.linux-i686/egg/callback_daemon/a2b_callback_daemon.py", line 23, in ?
File "build/bdist.linux-i686/egg/callback_daemon/database.py", line 26, in ?
ImportError: No module named sqlalchemy
Starting a2b-callback-daemon: [FAILED]

Please help


Top
 Profile  
 
 Post subject: Re: How to setup step by step daemon & callback
PostPosted: Tue Nov 30, 2010 3:42 am 
Offline

Joined: Sat Mar 07, 2009 8:18 pm
Posts: 27
finally I was able to make the daemon start and using the a2billing-cid-callback it not calling back I see they changed everything in GUI mode, can you help me out what need to be done on callback section on GUI mode, please help.

Thank you,


Top
 Profile  
 
 Post subject: Re: How to setup step by step daemon & callback
PostPosted: Mon Jan 03, 2011 9:04 am 
Offline

Joined: Sat Mar 07, 2009 8:18 pm
Posts: 27
Hello,
I need help with setting up my callback. I was able to install my callback daemon it starting normal, stop normal and I was able to configure the cid-callback on asterisk, the DID everything. When you call call it does recognize the callerid and hangs. But it doesn't call me back, anybody can point me to the right post on this forum or help me out, if there is anything am I missing specially on the a2b side. Thank you in advance for your help.


Top
 Profile  
 
 Post subject: Re: How to setup step by step daemon & callback
PostPosted: Mon Jan 03, 2011 12:17 pm 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Check the daemon starts after asterisk.

Check the add callback page to check it is queued, and what the system is trying to dial, e.g. you have a rate, and the extension matches in your call-back context - by default, a2billing-callback


Top
 Profile  
 
 Post subject: Re: How to setup step by step daemon & callback
PostPosted: Mon Jan 03, 2011 8:18 pm 
Offline

Joined: Sat Mar 07, 2009 8:18 pm
Posts: 27
Thank you Joe for your quick respond and I went to add callback and added my sip trunk in the format of SIP/sip.trunk.com/CallerID(phone number), the unit id, and I did check the status saying sent and success. it calling me back but after I pickup the phone it does hang up. Could you please help like where should I check next? Thank you.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 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