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/downloadtar -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