Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Mar 30, 2017 10:47 am
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: a2billing.php hangups
PostPosted: Wed Oct 07, 2015 12:27 am 
Offline

Joined: Tue Dec 23, 2014 2:54 am
Posts: 11
Guys, Ive been at this for weeks trying to find the cause of this error. Installed/reinstalled every combo imaginable of centOS, Ubuntu, FreePBX, PBX in a Flash and end up at the same error. Im using Amazon AWS to host my server.

Code:
[2015-10-07 00:05:40] VERBOSE[2936][C-00000004] res_agi.c: -- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
[2015-10-07 00:05:40] VERBOSE[2936][C-00000004] res_agi.c: -- <SIP/50.22.101.14-00000004>AGI Script a2billing.php completed, returning 0
[2015-10-07 00:05:41] VERBOSE[2936][C-00000004] pbx.c: -- Executing [[email protected]:2] Hangup("SIP/50.22.101.14-00000004", "") in new stack
[2015-10-07 00:05:41] VERBOSE[2936][C-00000004] pbx.c: == Spawn extension (custom-a2billing, 14079060066, 2) exited non-zero on 'SIP/50.22.101.14-00000004


agi-bin log files are blank. Permissions I believe are all correct. The only configuration i set in A2billing is asterisk version.

Any ideas very welcome.

Thanks,

Alex


Top
 Profile  
 
 Post subject: Re: a2billing.php hangups
PostPosted: Wed Oct 07, 2015 3:46 pm 
Offline

Joined: Wed Apr 23, 2014 9:35 am
Posts: 19
same problem for me too. my system built on centos 6.5 with asterisk13, freepbx 13, a2billing 2.2.0. Well, its a test environment i setup to test all are working fine before putting it on production. unfortunately, i m getting same problem. a2billing.php just hangups fro every calls, agi verbose in a2bil conf does not work as i wanted to troubleshoot the issue. no cdrs generating. kind of lost where to look.


Top
 Profile  
 
 Post subject: Re: a2billing.php hangups
PostPosted: Wed Oct 07, 2015 10:22 pm 
Offline

Joined: Tue Dec 23, 2014 2:54 am
Posts: 11
Ive tried asterisk 12, freebpx couple of versions also to no avail. Ubuntu 14 & CentOS 6.5, 7.0 NADA.


Top
 Profile  
 
 Post subject: Re: a2billing.php hangups
PostPosted: Thu Oct 08, 2015 2:54 am 
Offline

Joined: Tue Dec 23, 2014 2:54 am
Posts: 11
Tomorrow I will try installing an older release and upgrading from there.


Top
 Profile  
 
 Post subject: Re: a2billing.php hangups
PostPosted: Sun Oct 11, 2015 10:59 pm 
Offline

Joined: Mon Mar 02, 2009 8:56 pm
Posts: 271
I think because the call is getting passed to A2Billing you really need to get the a2billing logging working o see what's happening with the calls.

Like this - https://sysadminman.net/blog/2011/a2bil ... gging-2417


Top
 Profile  
 
 Post subject: Re: a2billing.php hangups
PostPosted: Fri Oct 16, 2015 6:27 pm 
Offline

Joined: Thu Sep 22, 2011 2:27 pm
Posts: 52
i have a same ishue but nothing do more i feel now help
Code:
== Using SIP RTP CoS mark 5
    -- Executing [[email protected]:1] Answer("SIP/6480252388-0000000e", "") in new stack
    -- Executing [[email protected]:2] Wait("SIP/6480252388-0000000e", "1") in new stack
    -- Executing [[email protected]:3] AGI("SIP/6480252388-0000000e", "a2billing.php,1") in new stack
    -- Launched AGI Script /usr/share/asterisk/agi-bin/a2billing.php
    -- <SIP/6480252388-0000000e>AGI Script a2billing.php completed, returning 0
    -- Executing [[email protected]:4] Hangup("SIP/6480252388-0000000e", "") in new stack
  == Spawn extension (a2billing, 00923319000256, 4) exited non-zero on 'SIP/6480252388-0000000e'
easylife*CLI>


Top
 Profile  
 
 Post subject: Re: a2billing.php hangups
PostPosted: Mon Oct 19, 2015 9:46 am 
Offline

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

In the agi-conf, you can increase verbosity.

Assuming everything is installed correctly, then the main reasons for failure are:

1. Is there a rate for the destination (Check rate simulator)
2. Has customer credit (check account)
3. Are the right digits sent to the carrier (check CDR)
4. Does the number exist (ring it)
5. Is it a carrier issue. (Try another carrier)

Joe


Top
 Profile  
 
 Post subject: Re: a2billing.php hangups
PostPosted: Tue Oct 20, 2015 4:21 pm 
Offline

Joined: Mon Mar 02, 2009 8:56 pm
Posts: 271
I just got caught out on a system because of the new(ish) requirements for the "vendor" folder.

If this isn't found A2Billing doesn't generate anything in the log file, you just see the "return 0". You can check this by doing something like -

su - asterisk
php /var/lib/asterisk/agi-bin/a2billing.php

Your path/user may vary. You should not see a warning about the vendor folder (you shouldn't see anything - the command should just sit there)

If you do see a warning about the vendor folder you should be able to figure out where it needs to go from the error.

Edit - Obviously this is a very specific case, Joe's general troubleshooting tips above are more likely


Top
 Profile  
 
 Post subject: Re: a2billing.php hangups
PostPosted: Wed Oct 21, 2015 3:01 am 
Offline

Joined: Tue Dec 23, 2014 2:54 am
Posts: 11
I have no idea what is wrong.

logs were empty btw.

What did work was that installed 2.0.16, now I know what you guys are thinking. But it worked. Right away. Just changed the src and copied the 2.0.16 a2billing.php. I use links for all my files.


Top
 Profile  
 
 Post subject: Re: a2billing.php hangups
PostPosted: Fri Oct 23, 2015 12:35 am 
Offline

Joined: Thu Sep 22, 2011 2:27 pm
Posts: 52
bucasia wrote:
I just got caught out on a system because of the new(ish) requirements for the "vendor" folder.

If this isn't found A2Billing doesn't generate anything in the log file, you just see the "return 0". You can check this by doing something like -

su - asterisk
php /var/lib/asterisk/agi-bin/a2billing.php

Your path/user may vary. You should not see a warning about the vendor folder (you shouldn't see anything - the command should just sit there)

If you do see a warning about the vendor folder you should be able to figure out where it needs to go from the error.

Edit - Obviously this is a very specific case, Joe's general troubleshooting tips above are more likely


dear i try to php /var/lib/asterisk/agi-bin/a2billing.php
so system is show this error please tell me how to solve its

[[email protected] ~]# php /var/lib/asterisk/agi-bin/a2billing.php
PHP Fatal error: require_once(): Failed opening required '/var/lib/asterisk/agi-bin/../vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/lib/asterisk/agi-bin/a2billing.php on line 42
You have new mail in /var/spool/mail/root
[[email protected] ~]#


Top
 Profile  
 
 Post subject: Re: a2billing.php hangups
PostPosted: Sun Oct 25, 2015 10:20 pm 
Offline

Joined: Thu Sep 22, 2011 2:27 pm
Posts: 52
I am waiting from 3 days please help me


Top
 Profile  
 
 Post subject: Re: a2billing.php hangups
PostPosted: Mon Oct 26, 2015 9:28 pm 
Offline

Joined: Mon Mar 02, 2009 8:56 pm
Posts: 271
This file doesn't exist - /var/lib/asterisk/agi-bin/../vendor/autoload.php and it should

Maybe try ...

yum -y install mlocate
updatedb
locate autoload.php

to find out where this file is and move it to the correct location. Or you should check the installation instructions about how to install that file.


Top
 Profile  
 
 Post subject: Re: a2billing.php hangups
PostPosted: Tue Oct 27, 2015 11:53 pm 
Offline

Joined: Thu Sep 22, 2011 2:27 pm
Posts: 52
when i try to ... locate autoload.php
its show me


[[email protected] ~]# updatedb
[[email protected] ~]# locate autoload.php
/usr/local/src/a2billing/vendor/autoload.php
/usr/local/src/a2billing/vendor/phpunit/phpunit/build/phar-autoload.php.in
/usr/local/src/a2billing/vendor/sebastian/comparator/tests/autoload.php
/usr/share/php/phpDocumentor/Reflection/DocBlock/autoload.php
/var/www/html/a2billing/vendor/autoload.php
/var/www/html/a2billing/vendor/phpunit/phpunit/build/phar-autoload.php.in
/var/www/html/a2billing/vendor/sebastian/comparator/tests/autoload.php
[[email protected] ~]#


Top
 Profile  
 
 Post subject: Re: a2billing.php hangups
PostPosted: Wed Oct 28, 2015 9:12 am 
Offline

Joined: Mon Mar 02, 2009 8:56 pm
Posts: 271
This should fix it ...

ln -s /var/www/html/a2billing/vendor /var/lib/asterisk/vendor


Top
 Profile  
 
 Post subject: Re: a2billing.php hangups
PostPosted: Sun Nov 01, 2015 12:53 am 
Offline

Joined: Thu Sep 22, 2011 2:27 pm
Posts: 52
thanks its working ok


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ]  Go to page 1, 2  Next
Hosted Voice Broadcast


All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 6 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group