Hi all,
After failing to install a2billing 1.7 due to LICENSE VIOLATION message, and not being able to fix it I installed version 1.6.0 that I was playing with a while back. Installation was successful with this one and all the web pages were great. However, when I tried to make a call then there was nothing happening. No prompt to enter PIN/Destination, nothing..no real error reported on /var/log/asterisk/messages.
As I am new to all these command line sytems, I spent more than 8 hours non stop looking for tips and solutions on A2billing forums but found nothing that matched my problem. I managed to gather below information as requested in other posts with similiar problems.
Could someone please advise what could be wrong.
-- Executing [
[email protected]:1] Goto("IAX2/222222-1351", "a2billing|_X.|1") in new stack
-- Goto (a2billing,_X.,1)
-- Executing [
[email protected]:1] Answer("IAX2/222222-1351", "") in new stack
-- Executing [
[email protected]:2] Wait("IAX2/222222-1351", "2") in new stack
-- Executing [
[email protected]:3] DeadAGI("IAX2/222222-1351", "a2billing.php") in new stack
[Jun 16 15:20:38] WARNING[3456]: res_agi.c:2212 deadagi_exec: Running DeadAGI on a live channel will cause problems, please use AGI
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
--
AGI Script a2billing.php completed, returning 0 -- Executing [
[email protected]:4] Wait("IAX2/222222-1351", "2") in new stack
-- Executing [
[email protected]:5] Hangup("IAX2/222222-1351", "") in new stack
== Spawn extension (a2billing, _X., 5) exited non-zero on 'IAX2/222222-1351'
-- Hungup 'IAX2/222222-1351'
WARNING[3385]: res_agi.c:2212 deadagi_exec: Running DeadAGI on a live channel will cause problems, please use AGI
AGI Tx >> agi_request: a2billing.php
AGI Tx >> agi_channel: IAX2/222222-2107
AGI Tx >> agi_language: en
AGI Tx >> agi_type: IAX2
AGI Tx >> agi_uniqueid: 1276665451.14
AGI Tx >> agi_calleridname: unknown
AGI Tx >> agi_callingpres: 1
AGI Tx >> agi_callingani2: 0
AGI Tx >> agi_callington: 0
AGI Tx >> agi_callingtns: 0
AGI Tx >> agi_dnid: 0
AGI Tx >> agi_rdnis: unknown
AGI Tx >> agi_context: a2billing
AGI Tx >> agi_extension: _X.
AGI Tx >> agi_priority: 3
AGI Tx >> agi_enhanced: 0.0
AGI Tx >> agi_accountcode: 222222
AGI Tx >> *CLI>
linux-i8ym*CLI>
# yes "" | /var/lib/asterisk/agi-bin/a2billing.php 1
PHP Fatal error: Class 'AGI' not found in /var/lib/asterisk/agi-bin/a2billing.php on line 61
Extensions.conf[default]
exten => _X,1,Goto(a2billing,_X.,1)
[a2billing]
exten => _X.,1,Answer
exten => _X.,2,Wait,2
exten => _X.,3,DeadAGI,a2billing.php
exten => _X.,4,Wait,2
exten => _X.,5,Hangup
additional_a2billing_iax.conf[222222]
type=friend
username=222222
accountcode=222222
host=dynamic
secret=222222
nat=yes
dtmfmode=RFC2833
Also, sounds files are located under /var/lib/asterisk/sounds/
agi-bin and asterisk is owned by root:root.
-rwxr-xr-x 1 root root 38286 Jun 16 14:08 a2billing.php
lrwxrwxrwx 1 root root 13 Jun 16 14:08 lib -> ../common/lib
Thanks in advance.