Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Mar 28, 2024 9:32 pm
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: v 1.9.4 Spawn extension (a2billing, 103, 5) exited non-zero
PostPosted: Thu Jun 02, 2011 5:44 pm 
Offline

Joined: Mon May 30, 2011 5:35 am
Posts: 12
Hi,

I have installed asterisk now FREEPBX 2.7.0 with a2billing 1.9.4 latest. I am attempting to verify the install by dialing a random number from a sip extension using xlite. The sip extension is linked to context a2billing. But whenever I try the call hangs up after about 5 seconds silence.

Also none of the a2billing logs in /var/log/a2billing/ are getting populated

I have also set System Settings -> Global -> Use Realtime should be set to "NO"
and the two parameters
Create SIP and Create IAX are also set to 'YES'

I have spent last 5 days on this but I am still not sure if it is installed correctly. Please help me or can you refer me to any other such software.

Below are the a2billing and asterisk directories

[root@localhost AGI]# pwd
/usr/local/src/a2billing/AGI
[root@localhost AGI]# ls -ltr
total 88
lrwxrwxrwx 1 asterisk asterisk 13 Jun 2 12:21 lib -> ../common/lib
-rwxr-xr-x 1 asterisk asterisk 73842 Jun 2 12:21 a2billing.php
-rwxr-xr-x 1 asterisk asterisk 7450 Jun 2 12:21 a2billing_monitoring.php
[root@localhost AGI]#
[root@localhost AGI]#
[root@localhost AGI]#
[root@localhost AGI]# cd /var/lib/asterisk/agi-bin/
[root@localhost agi-bin]# ls -ltr
total 364
-rwxrwxr-x 1 asterisk asterisk 14530 Aug 25 2010 jukebox.agi
-rwxrwxr-x 1 asterisk asterisk 1742 Aug 25 2010 agi-test.agi
-rwxrwxr-x 1 asterisk asterisk 8724 Aug 25 2010 eagi-test
-rwxrwxr-x 1 asterisk asterisk 9909 Aug 25 2010 eagi-sphinx-test
-rwxrw-r-- 1 asterisk asterisk 65906 Jun 2 09:39 phpagi.php
-rwxrw-r-- 1 asterisk asterisk 26877 Jun 2 09:39 phpagi-asmanager.php
-rwxrwxr-x 1 asterisk asterisk 73842 Jun 2 12:41 a2billing.php
lrwxrwxrwx 1 asterisk asterisk 13 Jun 2 13:56 lib -> ../common/lib
-rwxrwxr-- 1 asterisk asterisk 17968 Jun 2 16:03 user_login_out.agi
-rwxrwxr-- 1 asterisk asterisk 21117 Jun 2 16:03 sql.php
-rwxrwxr-- 1 asterisk asterisk 2003 Jun 2 16:03 list-item-remove.php
-rwxrwxr-- 1 asterisk asterisk 7891 Jun 2 16:03 fixlocalprefix
-rwxrwxr-- 1 asterisk asterisk 5564 Jun 2 16:03 enumlookup.agi
-rwxrwxr-- 1 asterisk asterisk 13302 Jun 2 16:03 directory
-rwxrwxr-- 1 asterisk asterisk 31236 Jun 2 16:03 dialparties.agi
-rwxrwxr-- 1 asterisk asterisk 1872 Jun 2 16:03 checksound.agi


[root@localhost a2billing]# pwd
/var/log/a2billing
[root@localhost a2billing]# ls -ltr
total 0
-rwxrwxrwx 1 asterisk asterisk 0 Jun 2 14:36 cront_a2b_subscription_fee.log
-rwxrwxrwx 1 asterisk asterisk 0 Jun 2 14:36 cront_a2b_invoice.log
-rwxrwxrwx 1 asterisk asterisk 0 Jun 2 14:36 cront_a2b_currency_update.log
-rwxrwxrwx 1 asterisk asterisk 0 Jun 2 14:36 cront_a2b_check_account.log
-rwxrwxrwx 1 asterisk asterisk 0 Jun 2 14:36 cront_a2b_bill_diduse.log
-rwxrwxrwx 1 asterisk asterisk 0 Jun 2 14:36 cront_a2b_batch_process.log
-rwxrwxrwx 1 asterisk asterisk 0 Jun 2 14:36 cront_a2b_autorefill.log
-rwxrwxrwx 1 asterisk asterisk 0 Jun 2 14:36 cront_a2b_archive_data.log
-rwxrwxrwx 1 asterisk asterisk 0 Jun 2 14:36 cront_a2b_alarm.log
-rwxrwxrwx 1 asterisk asterisk 0 Jun 2 14:36 a2billing_paypal.log
-rwxrwxrwx 1 asterisk asterisk 0 Jun 2 14:36 a2billing_epayment.log
-rwxrwxrwx 1 asterisk asterisk 0 Jun 2 14:36 a2billing_api_ecommerce_request.log
-rwxrwxrwx 1 asterisk asterisk 0 Jun 2 14:36 a2billing_api_card.log
-rwxrwxrwx 1 asterisk asterisk 0 Jun 2 14:36 a2billing_api_callback_request.log
-rwxrwxrwx 1 asterisk asterisk 0 Jun 2 14:36 a2billing_agi.log
[root@localhost a2billing]#


Attachments:
logs.zip [132.53 KiB]
Downloaded 588 times
Top
 Profile  
 
 Post subject: Re: v 1.9.4 Spawn extension (a2billing, 103, 5) exited non-zero
PostPosted: Thu Jun 02, 2011 5:50 pm 
Offline

Joined: Mon May 30, 2011 5:35 am
Posts: 12
This is the error in /var/log/asterisk/full when the extension attempts to dial a random number which is '103' in this case

[Jun 2 16:07:34] VERBOSE[7147] netsock.c: == Using SIP RTP CoS mark 5
[Jun 2 16:07:34] VERBOSE[7175] pbx.c: -- Executing [103@a2billing:1] Answer("SIP/102-00000001", "") in new stack
[Jun 2 16:07:34] VERBOSE[7175] pbx.c: -- Executing [103@a2billing:2] Wait("SIP/102-00000001", "2") in new stack
[Jun 2 16:07:37] VERBOSE[7175] pbx.c: -- Executing [103@a2billing:3] DeadAGI("SIP/102-00000001", "a2billing.php") in new stack
[Jun 2 16:07:37] WARNING[7175] res_agi.c: DeadAGI has been deprecated, please use AGI in all cases!
[Jun 2 16:07:37] VERBOSE[7175] res_agi.c: -- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
[Jun 2 16:07:37] VERBOSE[7175] res_agi.c: -- <SIP/102-00000001>AGI Script a2billing.php completed, returning 0
[Jun 2 16:07:37] VERBOSE[7175] pbx.c: -- Executing [103@a2billing:4] Wait("SIP/102-00000001", "2") in new stack
[Jun 2 16:07:39] VERBOSE[7175] pbx.c: -- Executing [103@a2billing:5] Hangup("SIP/102-00000001", "") in new stack
[Jun 2 16:07:39] VERBOSE[7175] pbx.c: == Spawn extension (a2billing, 103, 5) exited non-zero on 'SIP/102-00000001'
[Jun 2 16:08:10] NOTICE[7147] chan_sip.c: Received SIP subscribe for peer without mailbox: 102


Top
 Profile  
 
 Post subject: Re: v 1.9.4 Spawn extension (a2billing, 103, 5) exited non-zero
PostPosted: Thu Jun 02, 2011 5:53 pm 
Offline

Joined: Mon May 30, 2011 5:35 am
Posts: 12
mods appologies for many replies in short time but this is because I have to demonstrate basic features of a2billing to a possible client. I would really appreciate your kind early response


Top
 Profile  
 
 Post subject: Re: v 1.9.4 Spawn extension (a2billing, 103, 5) exited non-zero
PostPosted: Fri Jun 03, 2011 5:54 am 
Offline

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

It does not look as if you have installed a2billing.php correctly, as it does not look to be launching. My advice is to symlink a2billing.php in /var/lib/asterisk/agi-bin from the A2Billing installation directory.

If this is a commercial job, then maybe we can assist, see http://www.star2billing.com/consultancy ... d-install/

Joe


Top
 Profile  
 
 Post subject: Re: v 1.9.4 Spawn extension (a2billing, 103, 5) exited non-zero
PostPosted: Fri Jun 03, 2011 5:58 am 
Offline

Joined: Mon May 30, 2011 5:35 am
Posts: 12
I fixed it. The problem was the /lib directory. It seemed that a cp -rf from /usr/local/src/a2billing/AGI/lib to /var/lib/asterisk/agi-bin/ did not properly copy the /lib directory. Instead I did a cp * from ..AGI/lib to .../agi-bin/lib and this error is fixed now.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 
Voice Broadcast System


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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group