Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Apr 18, 2024 4:20 am
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: DeadAGI
PostPosted: Wed Sep 16, 2009 2:26 pm 
Offline

Joined: Mon Sep 14, 2009 2:28 pm
Posts: 7
I have finally configured A2Billing to trixbox, but still cant seem to get my arms around the whole thing. I have a Linksys phone that is extension 100 on trixbox. Works fine!!! When I add code, as per instructions to extensions-a2billing.conf, outbound calling doesn't work:

Here's the CLI:

-- Executing [083762456@a2billing:1] Answer("SIP/100-08be8008", "") in new stack
-- Executing [083762456@a2billing:2] Wait("SIP/100-08be8008", "1") in new stack
-- Executing [083762456@a2billing:3] DeadAGI("SIP/100-08be8008", "a2billing.php|1") in new stack
-- Executing [083762456@a2billing:4] Hangup("SIP/100-08be8008", "") in new stack
== Spawn extension (a2billing, 083762456, 4) exited non-zero on 'SIP/100-08be8008'

It appears to be doing exactly what we are telling it to to. Hangup! According to instructions:

exten => _X.,1,Answer
exten => _X.,n,Wait(1)
exten => _X.,n,DeadAGI(a2billing.php|1)
exten => _X.,n,Hangup

I don't get it. I want A2Billing to track call minutes and markup for invoicing. Nothing more. Or, is it possible that I don't have it configed correctly. PLEASE HELP!!!


Top
 Profile  
 
 Post subject: Re: DeadAGI
PostPosted: Wed Sep 16, 2009 3:07 pm 
Offline

Joined: Fri Feb 29, 2008 2:00 pm
Posts: 9
Hi epatey!

The debug descripted below is no much especific.

First, you need activated the line "console" in the logger.conf file for more debug.
Don't forget execute "logger reload" in the asterisk CLI.

At this point, we know what is happening :)


[]'s


Top
 Profile  
 
 Post subject: Re: DeadAGI
PostPosted: Wed Sep 16, 2009 5:14 pm 
Offline

Joined: Mon Sep 14, 2009 2:28 pm
Posts: 7
Thanks for the response. I turned on logging and placed a call to my PSTN trunk. Here's what came up in the CLI:

Code:
    -- Executing [083762456@a2billing:1] Answer("SIP/100-08d96e98", "") in new stack
    -- Executing [083762456@a2billing:2] Wait("SIP/100-08d96e98", "1") in new stack
    -- Executing [083762456@a2billing:3] DeadAGI("SIP/100-08d96e98", "a2billing.php|1") in new stack
[Sep 16 11:01:59] WARNING[3906]: res_agi.c:3067 deadagi_exec: DeadAGI has been deprecated, please use AGI in all cases!
[Sep 16 11:01:59] WARNING[3906]: res_agi.c:630 launch_script: Failed to execute '/var/lib/asterisk/agi-bin/a2billing.php|1': File does not exist.
    -- Executing [083762456@a2billing:4] Hangup("SIP/100-08d96e98", "") in new stack
  == Spawn extension (a2billing, 083762456, 4) exited non-zero on 'SIP/100-08d96e98'


The file was NOT THERE. So, I just copied the file to /var/lib/asterisk/agi-bin/ and restarted asterisk. I expected great things to happen. However, I got the same exact error. It can't find the file. I checked the permissions and they look good and even did a chmod 777 on the file. Restarted. Same thing. Please help!


Top
 Profile  
 
 Post subject: Re: DeadAGI
PostPosted: Wed Sep 16, 2009 5:23 pm 
Offline

Joined: Fri Feb 29, 2008 2:00 pm
Posts: 9
epatey,

You should copy all AGI files of a2billing to the directory: /var/lib/asterisk/agi-bin

Read the manual of instalation.


Top
 Profile  
 
 Post subject: Re: DeadAGI
PostPosted: Wed Sep 16, 2009 8:02 pm 
Offline

Joined: Mon Sep 14, 2009 2:28 pm
Posts: 7
This is what i have in /var/lib/asterisk/agi-bin:

Code:
-rwxrwxrwx 1 asterisk asterisk  37K Sep 16 11:05 a2billing.php
-rwxrwxrwx 1 root     root      13K Sep 16 11:15 admin.defines.php
-rwxrwxrwx 1 root     root      25K Sep 16 11:15 admin.help.php
-rwxrwxrwx 1 root     root     6.4K Sep 16 11:15 admin.module.access.php
-rwxrwxrwx 1 root     root     2.5K Sep 16 11:15 admin.smarty.php
-rwxrwxrwx 1 root     root      17K Sep 16 11:15 agent.defines.php
-rwxrwxrwx 1 root     root     5.7K Sep 16 11:15 agent.help.php
-rwxrwxrwx 1 root     root     4.6K Sep 16 11:15 agent.module.access.php
-rwxrwxrwx 1 root     root     1.9K Sep 16 11:15 agent.smarty.php
-rwxrwxrwx 1 asterisk asterisk 1.8K Jun 12 13:04 agi-test.agi
-rwxrwxrwx 1 asterisk asterisk 1.9K Sep 10 13:12 checksound.agi
-rwxrwxrwx 1 root     root     147K Sep 16 11:15 Class.A2Billing.php
-rwxrwxrwx 1 root     root     1.3K Sep 16 11:15 Class.Connection.php
-rwxrwxrwx 1 root     root     4.2K Sep 16 11:15 Class.Logger.php
-rwxrwxrwx 1 root     root     6.0K Sep 16 11:15 Class.Mail.php
-rwxrwxrwx 1 root     root      15K Sep 16 11:15 Class.MytoPg.php
-rwxrwxrwx 1 root     root     2.3K Sep 16 11:15 Class.Notification.php
-rwxrwxrwx 1 root     root     2.6K Sep 16 11:15 Class.NotificationsDAO.php
-rwxrwxrwx 1 root     root      55K Sep 16 11:15 Class.RateEngine.php
-rwxrwxrwx 1 root     root     1.3K Sep 16 11:15 class.Session.php
-rwxrwxrwx 1 root     root      11K Sep 16 11:15 Class.Table.php
-rwxrwxrwx 1 root     root      628 Sep 16 11:15 common.defines.php
-rwxrwxrwx 1 root     root     3.4K Sep 16 11:15 config_functions.php
-rwxrwxrwx 1 root     root      17K Sep 16 11:15 customer.defines.php
-rwxrwxrwx 1 root     root     5.9K Sep 16 11:15 customer.help.php
-rwxrwxrwx 1 root     root     6.0K Sep 16 11:15 customer.module.access.php
-rwxrwxrwx 1 root     root     2.4K Sep 16 11:15 customer.smarty.php
-rwxrwxrwx 1 asterisk asterisk  29K Sep 10 13:12 dialparties.agi
-rwxrwxrwx 1 root     root     7.9K Sep 16 11:15 didx.php
-rwxrwxrwx 1 asterisk asterisk  14K Sep 10 13:12 directory
-rwxrwxrwx 1 asterisk asterisk 6.7K Jun 12 13:04 eagi-sphinx-test
-rwxrwxrwx 1 asterisk asterisk 5.7K Jun 12 13:04 eagi-test
-rwxrwxrwx 1 asterisk asterisk 3.7K Sep 10 13:12 enumlookup.agi
-rwxrwxrwx 1 asterisk asterisk  703 Jun 25 14:05 festival-script.pl
-rwxrwxrwx 1 asterisk asterisk 7.6K Sep 10 13:12 fixlocalprefix
-rwxrwxrwx 1 root     root      39K Sep 16 11:15 fpdf.php
-rwxrwxrwx 1 root     root      17K Sep 16 11:15 iam_csvdump.php
-rwxrwxrwx 1 root     root        0 Sep 16 11:15 index.php
-rwxrwxrwx 1 asterisk asterisk  15K Jun 12 13:04 jukebox.agi
-rwxrwxrwx 1 root     root     2.7K Sep 16 11:15 languageSettings.php
drwxr-xr-x 2 asterisk asterisk 4.0K Sep 16 11:33 libs_a2billing
-rwxrwxrwx 1 asterisk asterisk 1.3K Sep 10 13:12 list-item-remove.php
-rwxrwxrwx 1 root     root      36K Sep 16 11:15 Misc.php
-rwxrwxrwx 1 asterisk asterisk  10K Sep 10 13:12 pbdirectory
-rwxrwxrwx 1 asterisk asterisk  27K Jul 29 14:58 phpagi-asmanager.php
-rwxrwxrwx 1 asterisk asterisk  65K Jul 29 14:58 phpagi.php
-rwxrwxrwx 1 root     root     6.4K Sep 16 11:15 PhpQuickProfiler.php
-rwxrwxrwx 1 root     root     1.1K Sep 16 11:15 ProcessHandler.php
-rwxrwxrwx 1 asterisk asterisk 4.0K Sep 10 13:12 recordingcheck
-rwxrwxrwx 1 root     root     1.6K Sep 16 11:15 regular_express.inc
-rwxrwxrwx 1 root     root     5.2K Sep 16 11:15 smtp.php
-rwxrwxrwx 1 asterisk asterisk  14K Sep 10 13:12 user_login_out.agi


permissions are open to the world. I'm lost. Any advice?


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


All times are UTC


Who is online

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