Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Mar 28, 2024 12:35 pm
Voice Broadcast System


All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: callback_daemon-1.0.prod_r1528-py2.4.egg file not in src
PostPosted: Sat Jan 02, 2010 4:02 am 
Offline

Joined: Sat Jan 02, 2010 3:55 am
Posts: 8
I am trying to install a2billing in Centos 5.3 following the instructions that come up with source file http://www.asterisk2billing.org/downloa ... 4.1.tar.gz

Line no 194 of Install.CENTOS says that easy_install dist/callback_daemon-1.0.prod_r1528-py2.4.egg

But there is no such file, but only callback_daemon-1.0.prod_r1527-py2.5.egg

CentOS doesn't come with Python 2.5.

What are the other ways to solve this issue?


Top
 Profile  
 
 Post subject: Re: callback_daemon-1.0.prod_r1528-py2.4.egg file not in src
PostPosted: Sat Jan 02, 2010 8:53 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Somewhere on these forums is a callback install script you can inspect.

Joe


Top
 Profile  
 
 Post subject: Re: callback_daemon-1.0.prod_r1528-py2.4.egg file not in src
PostPosted: Sun Jan 03, 2010 7:29 am 
Offline

Joined: Sat Jan 02, 2010 3:55 am
Posts: 8
Hi,

I said the file callback_daemon-1.0.prod_r1528-py2.4.egg is missing in the source.

Any pointers would be appreciated.


Top
 Profile  
 
 Post subject: Re: callback_daemon-1.0.prod_r1528-py2.4.egg file not in src
PostPosted: Sun Jan 03, 2010 7:30 am 
Offline

Joined: Sat Jan 02, 2010 3:55 am
Posts: 8
Where can I get callback_daemon-1.0.prod_r1528-py2.4.egg file?


Top
 Profile  
 
 Post subject: Re: callback_daemon-1.0.prod_r1528-py2.4.egg file not in src
PostPosted: Sun Jan 03, 2010 8:37 am 
Offline

Joined: Sat Jan 02, 2010 3:55 am
Posts: 8
a new file was generated while executing python setup.py bdist_egg

That solved the issue.

The INSTALL.Centos document can specify this in next release, to make things easier for users.


Top
 Profile  
 
 Post subject: Re: callback_daemon-1.0.prod_r1528-py2.4.egg file not in src
PostPosted: Wed Jan 06, 2010 2:42 pm 
Offline

Joined: Wed Jan 06, 2010 12:54 pm
Posts: 5
Hello amachu,

Can you please post the steps you did when you installed the callback daemon in CentOS 5? I also have a similar system but I was not successful in getting the callback daemon to run.

When I issued this: easy_install dist/callback_daemon-1.0.prod_r1528-py2.4.egg, it returned an error about sqlalchemy. I searched through here and found out that the latest sqlalchemy version installed on my system is 0.3.x. I think I got that package from the EPEL repository. One user mentioned that version 0.4.x is the minimum. So I had to get a different version from Sourceforge- SQLAlchemy-0.5.7. From there I was able to install the callback daemon without errors. However, it would not run when called from the /usr/bin directory or from service <daemon> start | stop | status. It doesn't return an error as well, so I do not know where the problem is now.

This is what I did, by the way:
Quote:
yum -y install python-setuptools mysql-python python-psycopg2
cd /usr/src/a2billing/CallBack/callback-daemon-py
cp dist/callback_daemon-1.0.prod-r1528.tar.gz /tmp
cd /tmp
wget http://sourceforge.net/projects/sqlalchemy/files/sqlalchemy/0.5.7/SQLAlchemy-0.5.7.tar.gz/download
tar -xvzf SQLAlchemy-0.5.7.tar.gz
cd SQLAlchemy-0.5.7
python setup.py install
cd ..
tar -xvfz 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

cd /usr/src/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

chkconfig --add a2b-callback-daemon
service a2b-callback-daemon start (### I'm stuck here ###)
chkconfig a2b-callback-daemon on


Top
 Profile  
 
 Post subject: Re: callback_daemon-1.0.prod_r1528-py2.4.egg file not in src
PostPosted: Thu Aug 26, 2010 10:52 am 
Offline

Joined: Thu Aug 26, 2010 9:27 am
Posts: 4
Location: Singapore
viewtopic.php?f=33&t=7711&p=31137#p31137


Top
 Profile  
 
 Post subject: Re: callback_daemon-1.0.prod_r1528-py2.4.egg file not in src
PostPosted: Sat Oct 16, 2010 3:44 am 
Offline

Joined: Tue May 16, 2006 11:54 pm
Posts: 12
Location: Taiwan
Dear Sir,
I am use this step by step manual
yum -y install python-setuptools mysql-python python-psycopg2
cd /usr/src/a2billing/CallBack/callback-daemon-py
cp dist/callback_daemon-1.0.prod-r1528.tar.gz /tmp
cd /tmp
wget http://sourceforge.net/projects/sqlalch ... z/download
tar -xvzf SQLAlchemy-0.5.7.tar.gz
cd SQLAlchemy-0.5.7
python setup.py install
cd ..
tar -xvfz 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

cd /usr/src/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

chkconfig --add a2b-callback-daemon
service a2b-callback-daemon start (### I'm stuck here ###)
chkconfig a2b-callback-daemon on

and check here
viewtopic.php?f=33&t=7711&p=31137#p31137
#I managed to resolved the problem for installing callback-daemon on centos, version 1.7.1 of a2billing. (this should work for other back dated version)

#I am assuming you've retrieved the trunk package using svn and stored all the files under /usr/local/src/a2billing/
#Also your a2billing.conf file is stored here --> /etc/a2billing.conf else take note of the additional steps marked in red

#goto target directory
(1) cd /usr/local/src/a2billing/CallBack/callback-daemon-py/dist/

#untar the r1528 file to create callback_daemon-1.0.prod-r1528 directory
(2) tar -xvf callback_daemon-1.0.prod-r1528.tar.gz

#Go down into the newly untared directory
(3) cd callback_daemon-1.0.prod-r1528

#excute the following python commands as per a2billing doc site
(4) python setup.py build
(5) python setup.py bdist_egg
#additional steps to correct the path for the a2billing.conf file
(5b) vi callback_daemon/a2b_callback_daemon.py
(5c) replace the path to which your a2billing.conf resides in your system, the line should be --> CONFIG_FILE =
#execute the installation
(6) easy_install dist/callback_daemon-1.0.prod_r1528-py2.4.egg

#install the init script and daemon service (still at your current directory level)
(7) cp build/lib/callback_daemon/a2b-callback-daemon.rc /etc/init.d/a2b-callback-daemon
(8) chmod +x /etc/init.d/a2b-callback-daemon
(9) chkconfig --add a2b-callback-daemon
(10) chkconfig a2b-callback-daemon on

# finally start the service u can either use the init script or service command
(11a) service a2b-callback-daemon start
(11b) /etc/init.d/a2b-callback-daemon start


#hopefully this solves your problem :

I only check my
[b]CONFIG_FILE = '/etc/a2billing.conf'[/b]
No error message during install
But this seems callback no function
Where can I make sure my install is correct

Below is my log

Connected to Asterisk 1.4.26.1 currently running on 59-120-153-120 (pid = 2659)
Verbosity is at least 3
-- Executing [88668@from-sip-external:1] NoOp("SIP/5060-b7218db0", "Received incoming SIP connection from unknown peer to 88668") in new stack
-- Executing [88668@from-sip-external:2] Set("SIP/5060-b7218db0", "DID=88668") in new stack
-- Executing [88668@from-sip-external:3] Goto("SIP/5060-b7218db0", "s|1") in new stack
-- Goto (from-sip-external,s,1)
-- Executing [s@from-sip-external:1] GotoIf("SIP/5060-b7218db0", "1?from-trunk|88668|1") in new stack
-- Goto (from-trunk,88668,1)
-- Executing [88668@from-trunk:1] Macro("SIP/5060-b7218db0", "exten-vm|novm|88668") in new stack
-- Executing [s@macro-exten-vm:1] Macro("SIP/5060-b7218db0", "user-callerid") in new stack
-- Executing [s@macro-user-callerid:1] Set("SIP/5060-b7218db0", "AMPUSER=0229875980") in new stack
-- Executing [s@macro-user-callerid:2] GotoIf("SIP/5060-b7218db0", "0?report") in new stack
-- Executing [s@macro-user-callerid:3] ExecIf("SIP/5060-b7218db0", "1|Set|REALCALLERIDNUM=0229875980") in new stack
-- Executing [s@macro-user-callerid:4] Set("SIP/5060-b7218db0", "AMPUSER=") in new stack
-- Executing [s@macro-user-callerid:5] Set("SIP/5060-b7218db0", "AMPUSERCIDNAME=") in new stack
-- Executing [s@macro-user-callerid:6] GotoIf("SIP/5060-b7218db0", "1?report") in new stack
-- Goto (macro-user-callerid,s,10)
-- Executing [s@macro-user-callerid:10] GotoIf("SIP/5060-b7218db0", "0?continue") in new stack
-- Executing [s@macro-user-callerid:11] Set("SIP/5060-b7218db0", "__TTL=64") in new stack
-- Executing [s@macro-user-callerid:12] GotoIf("SIP/5060-b7218db0", "1?continue") in new stack
-- Goto (macro-user-callerid,s,19)
-- Executing [s@macro-user-callerid:19] NoOp("SIP/5060-b7218db0", "Using CallerID "0229875980" <0229875980>") in new stack
-- Executing [s@macro-exten-vm:2] Set("SIP/5060-b7218db0", "RingGroupMethod=none") in new stack
-- Executing [s@macro-exten-vm:3] Set("SIP/5060-b7218db0", "VMBOX=novm") in new stack
-- Executing [s@macro-exten-vm:4] Set("SIP/5060-b7218db0", "EXTTOCALL=88668") in new stack
-- Executing [s@macro-exten-vm:5] Set("SIP/5060-b7218db0", "CFUEXT=") in new stack
-- Executing [s@macro-exten-vm:6] Set("SIP/5060-b7218db0", "CFBEXT=") in new stack
-- Executing [s@macro-exten-vm:7] Set("SIP/5060-b7218db0", "RT=""") in new stack
-- Executing [s@macro-exten-vm:8] Macro("SIP/5060-b7218db0", "record-enable|88668|IN") in new stack
-- Executing [s@macro-record-enable:1] GotoIf("SIP/5060-b7218db0", "1?check") in new stack
-- Goto (macro-record-enable,s,4)
-- Executing [s@macro-record-enable:4] AGI("SIP/5060-b7218db0", "recordingcheck|20101016-112631|1287199591.6") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
recordingcheck|20101016-112631|1287199591.6: Inbound recording not enabled
-- AGI Script recordingcheck completed, returning 0
-- Executing [s@macro-record-enable:5] MacroExit("SIP/5060-b7218db0", "") in new stack
-- Executing [s@macro-exten-vm:9] Macro("SIP/5060-b7218db0", "dial||tr|88668") in new stack
-- Executing [s@macro-dial:1] GotoIf("SIP/5060-b7218db0", "1?dial") in new stack
-- Goto (macro-dial,s,3)
-- Executing [s@macro-dial:3] AGI("SIP/5060-b7218db0", "dialparties.agi") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/dialparties.agi
dialparties.agi: Starting New Dialparties.agi
== Parsing '/etc/asterisk/manager.conf': Found
== Parsing '/etc/asterisk/manager_additional.conf': Found
== Parsing '/etc/asterisk/manager_custom.conf': Found
== Manager 'admin' logged on from 127.0.0.1
dialparties.agi: Caller ID name is '0229875980' number is '0229875980'
dialparties.agi: Methodology of ring is 'none'
-- dialparties.agi: Added extension 88668 to extension map
-- dialparties.agi: Extension 88668 cf is disabled
-- dialparties.agi: Extension 88668 do not disturb is disabled
dialparties.agi: ExtensionState: 4
dialparties.agi: Extension 88668 has ExtensionState: 4
-- dialparties.agi: Checking CW and CFB status for extension 88668
-- dialparties.agi: dbset CALLTRACE/88668 to 0229875980
-- dialparties.agi: Filtered ARG3: 88668
== Manager 'admin' logged off from 127.0.0.1
-- AGI Script dialparties.agi completed, returning 0
-- Executing [s@macro-dial:7] Dial("SIP/5060-b7218db0", "SIP/88668||tr") in new stack
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [s@macro-dial:8] Set("SIP/5060-b7218db0", "DIALSTATUS=CHANUNAVAIL") in new stack
-- Executing [s@macro-dial:9] GosubIf("SIP/5060-b7218db0", "0?CHANUNAVAIL|1") in new stack
-- Executing [s@macro-exten-vm:10] GotoIf("SIP/5060-b7218db0", "0?exit|return") in new stack
-- Executing [s@macro-exten-vm:11] Set("SIP/5060-b7218db0", "SV_DIALSTATUS=CHANUNAVAIL") in new stack
-- Executing [s@macro-exten-vm:12] GosubIf("SIP/5060-b7218db0", "0?docfu|1") in new stack
-- Executing [s@macro-exten-vm:13] GosubIf("SIP/5060-b7218db0", "0?docfb|1") in new stack
-- Executing [s@macro-exten-vm:14] Set("SIP/5060-b7218db0", "DIALSTATUS=CHANUNAVAIL") in new stack
-- Executing [s@macro-exten-vm:15] NoOp("SIP/5060-b7218db0", "Voicemail is novm") in new stack
-- Executing [s@macro-exten-vm:16] GotoIf("SIP/5060-b7218db0", "1?s-CHANUNAVAIL|1") in new stack
-- Goto (macro-exten-vm,s-CHANUNAVAIL,1)
-- Executing [s-CHANUNAVAIL@macro-exten-vm:1] NoOp("SIP/5060-b7218db0", "IVR_RETVM: IVR_CONTEXT: ") in new stack
-- Executing [s-CHANUNAVAIL@macro-exten-vm:2] GotoIf("SIP/5060-b7218db0", "0?exit|1") in new stack
-- Executing [s-CHANUNAVAIL@macro-exten-vm:3] PlayTones("SIP/5060-b7218db0", "congestion") in new stack
-- Executing [s-CHANUNAVAIL@macro-exten-vm:4] Congestion("SIP/5060-b7218db0", "10") in new stack
== Spawn extension (macro-exten-vm, s-CHANUNAVAIL, 4) exited non-zero on 'SIP/5060-b7218db0' in macro 'exten-vm'
== Spawn extension (from-trunk, 88668, 1) exited non-zero on 'SIP/5060-b7218db0'
-- Executing [h@from-trunk:1] NoOp("SIP/5060-b7218db0", "Catch-All DID Match - Found h - You probably want a DID for this.") in new stack
-- Executing [h@from-trunk:2] Goto("SIP/5060-b7218db0", "ext-did|s|1") in new stack
-- Goto (ext-did,s,1)
-- Executing [s@ext-did:1] Set("SIP/5060-b7218db0", "__FROM_DID=s") in new stack
-- Executing [s@ext-did:2] Gosub("SIP/5060-b7218db0", "app-blacklist-check|s|1") in new stack
-- Executing [s@app-blacklist-check:1] LookupBlacklist("SIP/5060-b7218db0", "") in new stack
-- Executing [s@app-blacklist-check:2] GotoIf("SIP/5060-b7218db0", "0?blacklisted") in new stack
-- Executing [s@app-blacklist-check:3] Return("SIP/5060-b7218db0", "") in new stack
-- Executing [s@ext-did:3] ExecIf("SIP/5060-b7218db0", "0 |Set|CALLERID(name)=0229875980") in new stack
-- Executing [s@ext-did:4] Set("SIP/5060-b7218db0", "__CALLINGPRES_SV=allowed_not_screened") in new stack
-- Executing [s@ext-did:5] SetCallerPres("SIP/5060-b7218db0", "allowed_not_screened") in new stack
-- Executing [s@ext-did:6] Goto("SIP/5060-b7218db0", "a2billing-cid-callback|s|1") in new stack
-- Goto (a2billing-cid-callback,s,1)
59-120-153-120*CLI>


My a2billing is working , only test with a2billing callback function is failed
Even web function is failed ,too

Any one support is appreciated ,Thanks


Top
 Profile  
 
 Post subject: Re: callback_daemon-1.0.prod_r1528-py2.4.egg file not in src
PostPosted: Wed Nov 17, 2010 1:39 am 
Offline

Joined: Sat Mar 07, 2009 8:18 pm
Posts: 27
Hello,
I'm trying to follow up this topic but I'm having an missing file error from a fresh install, can someone please tell me where am I doing wrong? Or is this because I did change my original folder from /usr/local/src/a2billing to /usr/local/src/portal?

Here go the error:

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/database.py -> build/lib/callback_daemon
copying callback_daemon/manager.py -> build/lib/callback_daemon
copying callback_daemon/daemon.py -> build/lib/callback_daemon
copying callback_daemon/a2b_callback_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

Please help.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 
Predictive Dialer


All times are UTC


Who is online

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