Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Sun Jan 07, 2018 3:14 am
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: a2billing.php not executed..no prompt...nothing.
PostPosted: Wed Jun 16, 2010 5:47 am 
Offline

Joined: Thu Nov 12, 2009 9:36 pm
Posts: 33
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.


Top
 Profile  
 
 Post subject: Re: a2billing.php not executed..no prompt...nothing.
PostPosted: Wed Jun 16, 2010 5:56 am 
Offline

Joined: Thu Nov 12, 2009 9:36 pm
Posts: 33
Just one more note, now a2billing.php is giving below error. I have made no changes whatsoever.

yes "" | /var/lib/asterisk/agi-bin/a2billing.php 1
PHP Parse error: syntax error, unexpected T_GOTO, expecting T_STRING in /var/lib/asterisk/agi-bin/lib/phpagi/phpagi.php on line 1227


Top
 Profile  
 
 Post subject: Re: a2billing.php not executed..no prompt...nothing.
PostPosted: Wed Jun 16, 2010 8:34 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi

The license violation will only appear if you have changed the the copyright or license display, or have mucked up the installation.

Turning up the verbosity in A2Billing agi-conf may help identify the problem you are having.

Also ensure you are using PHP 5.2 with the appropriate dependencies.

Joe


Top
 Profile  
 
 Post subject: Re: a2billing.php not executed..no prompt...nothing.
PostPosted: Wed Jun 16, 2010 9:33 am 
Offline

Joined: Thu Nov 12, 2009 9:36 pm
Posts: 33
Hi Joe,
Thank you for the quick response. LICENSE VIOLATION message was displayed out of the fresh install of version 1.71. when I managed to successfully log on the first time.

PHP 5.3.2 (cli) is my PHP version. Will installing PHP 5.2 help solve the problem?

I will retry installing version 1.7.1 and see how it goes. I did not do any testing on that one as soon as I noticed links not expanding as I could not add customers or do anything else. Just in case, could you suggest how to remove that message and get the links working if it comes back with the fresh install.

Thanks heaps.

Regards,
VoipBeginner


Top
 Profile  
 
 Post subject: Re: a2billing.php not executed..no prompt...nothing.
PostPosted: Wed Jun 16, 2010 9:45 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
Hi

We would recommend PHP version 5.2. I believe there is work going on at the moment to make A2Billing compatible with PHP version 5.3

As I said, you will never get the license violation message, unless you violate the AGPL license under which you can use the software. That is to say removing the AGPL license message from where ever it is displayed, or removing the copyright information from where ever it is displayed, e.g. endeavouring to pass A2billing off as your own. There is a mechanism to purchase a permission to remove the license, http://www.star2billing.com/licensing

The only other way I can think of that it displays is that you have bodged the installation in a completely new and imaginative way.

Joe


Top
 Profile  
 
 Post subject: Re: a2billing.php not executed..no prompt...nothing.
PostPosted: Thu Jun 17, 2010 10:43 am 
Offline

Joined: Thu Nov 12, 2009 9:36 pm
Posts: 33
Hi Joe and forum members,
Thank you very much for pointing me in the right direction.

As per your instructions I have installed PHP-5.2 and after spending hours to tweak everything together I have finally managed to hear the voice during test call, and the LICENSE VIOLATION message has disappeared after second install of a2billing 1.7.1.

Now, when I try to add a customer from the admin page it says the detail has been successfully inserted, but it does not exist in mysql DB at all. However, when I tried to add a provider name it got saved in mysql DB and got displayed on the page. So far I have tried adding a customer and an agent, and even though it says record added successfully it does not exist in the database.

It will be really appreciated if someone got spare some time to give me some hints.

Thanks in advance.
Regards,
VoipBeginner


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 
VoIP Billing solution


All times are UTC


Who is online

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