Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Apr 25, 2024 3:33 pm
Predictive Dialer


All times are UTC




Post new topic Reply to topic  [ 34 posts ]  Go to page 1, 2, 3  Next
Author Message
 Post subject: Failed to execute a2billing.php
PostPosted: Tue Feb 12, 2008 8:08 am 
Offline

Joined: Tue Feb 12, 2008 7:38 am
Posts: 8
I have installed a2billing set up trunks customer and all that

It gives me this every time.

Executing [888@a2billing:1] Answer("SIP/1905899910-081f2df0", "") in new stack
-- Executing [888@a2billing:2] Wait("SIP/1905899910-081f2df0", "2") in new stack
-- Executing [888@a2billing:3] DeadAGI("SIP/1905899910-081f2df0", "a2billing.php") in new stack
[Feb 12 09:46:00] WARNING[7517]: res_agi.c:2116 deadagi_exec: Running DeadAGI on a live channel will cause problems, please use AGI
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
== a2billing.php: Failed to execute '/var/lib/asterisk/agi-bin/a2billing.php': No such file or directory
-- AGI Script a2billing.php completed, returning 0
-- Executing [888@a2billing:4] Wait("SIP/1905899910-081f2df0", "2") in new stack
-- Executing [888@a2billing:5] Hangup("SIP/1905899910-081f2df0", "") in new stack
== Spawn extension (a2billing, 888, 5) exited non-zero on 'SIP/1905899910-081f2df0'

I've changed the perimissions on /var/lib/asterisk/agi-bin/a2billing.php but still it gives the same problem?
I've checked out another topic on this but it's not clear on what i'm supposed to do.

Someone please help me out.


Top
 Profile  
 
 Post subject: Re: Failed to execute a2billing.php
PostPosted: Tue Feb 12, 2008 4:25 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Mzeiya wrote:
== a2billing.php: Failed to execute '/var/lib/asterisk/agi-bin/a2billing.php': No such file or directory
That is a very specific error message. Are you sure the file in question exists?
Code:
# ls -la /var/lib/asterisk/agi-bin/a2billing.php
-rwxr-x--- 1 asterisk asterisk 44673 Jan  3 18:18 /var/lib/asterisk/agi-bin/a2billing.php


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 13, 2008 7:05 am 
Offline

Joined: Tue Feb 12, 2008 7:38 am
Posts: 8
Thanks for your reply.

I'm sure it exists. here,s the command and output it gave me.

letian:/etc/asterisk# ls -la /var/lib/asterisk/agi-bin/a2billing.php
-rwxrwxrwx 1 leti root 44598 2008-02-07 11:35 /var/lib/asterisk/agi-bin/a2billing.php

Know what could be wrong.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 13, 2008 8:15 am 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Well that shows that user 'leti', members of the group 'root', and indeed everyone has read, write and execute access for that file. It should be getting further than it is. I don't think it will help, but you could try changing the ownership to be whichever user:group that Asterisk runs as, usually asterisk:asterisk
Code:
# chown asterisk:asterisk /var/lib/asterisk/agi-bin/a2billing.php

Does running a2billing.php manually give the same error? First try asking for the version number:
Code:
# php /var/lib/asterisk/agi-bin/a2billing.php -v
A2Billing - Version Asterisk2Billing - Version 1.3.1 (Yellowjacket) - Release : September 2007
And if that works see what it says when launched in AGI mode:
Code:
# yes "" | php /var/lib/asterisk/agi-bin/a2billing.php 1
VERBOSE "A2Billing AGI internal configuration:"
VERBOSE "Array"
VERBOSE "("
etc

Of course it could be a permissions problem, but on the folders leading to /var/lib/asterisk/agi-bin. I use:
Code:
# ls -la /var/lib/asterisk/
total 176
drwxrwx---  9 asterisk asterisk    248 Feb 13 08:08 .
drwxr-xr-x 21 root     root        576 Oct 18 22:36 ..
drwxrwx---  3 asterisk asterisk     80 Aug  1  2007 a2billing
drwxrwx---  3 asterisk asterisk    336 Jan 21 01:09 agi-bin
-rw-rw----  1 asterisk asterisk 131072 Feb 13 08:08 astdb
drwxrwx---  3 asterisk asterisk     72 Feb  6  2006 firmware
drwxrwx---  2 asterisk asterisk     88 Oct 18 22:49 images
drwxrwx---  2 asterisk asterisk    120 Oct 18 22:49 keys
drwxrwx--- 12 asterisk asterisk    472 Oct 18 22:49 mohmp3
drwxrwx--- 19 asterisk asterisk  48456 Jan 21 01:09 sounds
If all else fails, perhaps /var/log/messages might offer some clues?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 13, 2008 12:18 pm 
Offline

Joined: Tue Feb 12, 2008 7:38 am
Posts: 8
Thanks it worked.
First i ran the a2billing.php which at first did not run which made me realise i had't installed php-pear package. I'm not sure its because of this it didn't run but after installing it and re-installing a2billing everything worked.

Appreciate your help.


Top
 Profile  
 
 Post subject: Fatal error: Class' AGI 'not found in / var/lib/asterisk/agi
PostPosted: Wed Nov 12, 2008 12:31 am 
Offline

Joined: Wed Nov 29, 2006 7:55 am
Posts: 11
I have the same problem that Mzeiya, but in my case, when I run:

yes "" | php / var/lib/asterisk/agi-bin/a2billing.php 1

I get:

Fatal error: Class' AGI 'not found in / var/lib/asterisk/agi-bin/a2billing.php on line 47

Any idea please?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 12, 2008 2:44 am 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
Are you sure you copied the libs_a2billing folder into /var/lib/asterisk/agi-bin too?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 13, 2008 10:23 pm 
Offline

Joined: Wed Nov 29, 2006 7:55 am
Posts: 11
I reinstalled the server again from the beginning, and now everything works fine. I do not know what was the problem, I suspect that it was something related to asterisk-addons and the asterisk in realtime.

Thanks for your time


Top
 Profile  
 
 Post subject: Re: Failed to execute a2billing.php
PostPosted: Wed Jun 17, 2009 1:51 pm 
Offline

Joined: Thu Aug 09, 2007 8:42 am
Posts: 53
Hi

iam having the same problem


php /usr/share/asterisk/agi-bin/a2billing.php -v
A2Billing - Version A2Billing - Version 1.4 - Trunk - Release : no date

yes "" | php /usr/share/asterisk/agi-bin/a2billing.php 1

Fatal error: Class 'AGI' not found in /usr/share/asterisk/agi-bin/a2billing.php on line 47



cd /usr/share/asterisk/agi-bin

ls -al
total 44
drwxr-xr-x 2 asterisk asterisk 4096 2009-06-17 06:29 .
drwxr-xr-x 5 root root 4096 2009-06-17 06:44 ..
-rwxr-xr-x 1 asterisk asterisk 35284 2009-06-17 06:01 a2billing.php
lrwxrwxrwx 1 root root 13 2009-06-16 07:32 lib -> ../common/lib


when i try to ls ../common i dont see any libraries

what is wrong here ?

any suggestions

Ram


Top
 Profile  
 
 Post subject: Re: Failed to execute a2billing.php
PostPosted: Sun Jun 21, 2009 1:11 pm 
Offline

Joined: Sat Jun 20, 2009 1:53 am
Posts: 3
Code:
lrwxrwxrwx 1 root root 13 2009-06-16 07:32 lib -> ../common/lib

The first L mean that lib is not a real folder it's a link to ../common/lib
You have 2 option to resolve this:

1 - you remove lib and you copy the real lib folder(/usr/local/src/a2billing/common/lib)
or
2- you leave lib and you put the link destination folder:
it mean that you copy common folder in /usr/share/asterisk/

I hope that it will help you.
Excuse me my english is not very good.


Top
 Profile  
 
 Post subject: trouble running a2billing
PostPosted: Thu Jul 02, 2009 7:56 pm 
Offline

Joined: Wed Jun 03, 2009 4:31 pm
Posts: 7
Hello, everyone I'm having trouble running a2billing, when I call between extensions it simply does not ring and does not call, send this message:




Connected to Asterisk 1.4.21.2~dfsg-3ubuntu2 currently running on ubuntu (pid = 2417)
Verbosity is at least 20
-- Executing [5529@a2billing:1] Answer("SIP/36309-0a096ab8", "") in new stac k
-- Executing [5529@a2billing:2] Wait("SIP/36309-0a096ab8", "2") in new stack
-- Executing [5529@a2billing:3] DeadAGI("SIP/36309-0a096ab8", "a2billing.php ") in new stack
[Jul 2 16:48:14] WARNING[3555]: res_agi.c:2238 deadagi_exec: Running DeadAGI on a live channel will cause problems, please use AGI
-- Launched AGI Script /usr/share/asterisk/agi-bin/a2billing.php
-- AGI Script a2billing.php completed, returning 0
-- Executing [5529@a2billing:4] Wait("SIP/36309-0a096ab8", "2") in new stack
-- Executing [5529@a2billing:5] Hangup("SIP/36309-0a096ab8", "") in new stack
== Spawn extension (a2billing, 5529, 5) exited non-zero on 'SIP/36309-0a096ab8'


Top
 Profile  
 
 Post subject: Re: Failed to execute a2billing.php
PostPosted: Thu Jul 02, 2009 8:23 pm 
Offline

Joined: Wed Jun 03, 2009 4:31 pm
Posts: 7
titi wrote:
Code:
lrwxrwxrwx 1 root root 13 2009-06-16 07:32 lib -> ../common/lib

The first L mean that lib is not a real folder it's a link to ../common/lib
You have 2 option to resolve this:

1 - you remove lib and you copy the real lib folder(/usr/local/src/a2billing/common/lib)
or
2- you leave lib and you put the link destination folder:
it mean that you copy common folder in /usr/share/asterisk/

I hope that it will help you.
Excuse me my english is not very good.



I tried both ways and not achieve what may be happening?


Verbosity is at least 20
-- Executing [85344@a2billing:1] Answer("SIP/36309-0a08e2d8", "") in new stack
-- Executing [85344@a2billing:2] Wait("SIP/36309-0a08e2d8", "2") in new stack
-- Executing [85344@a2billing:3] AGI("SIP/36309-0a08e2d8", "a2billing.php") in new stack
-- Launched AGI Script /usr/share/asterisk/agi-bin/a2billing.php
-- AGI Script a2billing.php completed, returning 0
-- Executing [85344@a2billing:4] Wait("SIP/36309-0a08e2d8", "2") in new stack
-- Executing [85344@a2billing:5] Hangup("SIP/36309-0a08e2d8", "") in new stack
== Spawn extension (a2billing, 85344, 5) exited non-zero on 'SIP/36309-0a08e2d8'
[Jul 2 17:18:55] NOTICE[2580]: chan_sip.c:15094 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 36309


Top
 Profile  
 
 Post subject: Re: Failed to execute a2billing.php
PostPosted: Thu Jul 02, 2009 11:35 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
pedromuniz8 wrote:
I tried both ways and not achieve what may be happening?
You could read your PHP log file (or perhaps syslog) to see what errors occurred.


Top
 Profile  
 
 Post subject: Re: Failed to execute a2billing.php
PostPosted: Mon Jul 06, 2009 3:19 pm 
Offline

Joined: Wed Jun 03, 2009 4:31 pm
Posts: 7
Now I put the folder common in :

/usr/share/asterisk

If I put the command it shows me the exit:

root@ubuntu:~# yes "" | php /usr/share/asterisk/agi-bin/a2billing.php 1
GET VARIABLE IDCONF
ANSWER
GET DATA prepaid-enter-pin-number 6000 20
STREAM FILE prepaid-invalid-digits "#" 0
GET DATA prepaid-enter-pin-number 6000 20
STREAM FILE prepaid-invalid-digits "#" 0
GET DATA prepaid-enter-pin-number 6000 20
HANGUP

But when you send the call to a branch, he tells me the output:


Parsing '/etc/asterisk/sip_notify.conf': Found
[Jul 6 12:12:52] NOTICE[2535]: chan_sip.c:15094 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 36309
-- Executing [85344@a2billing:1] Answer("SIP/36309-097a0bf8", "") in new stack
-- Executing [85344@a2billing:2] Wait("SIP/36309-097a0bf8", "2") in new stack
[Jul 6 12:12:53] NOTICE[2535]: chan_sip.c:12669 handle_response_peerpoke: Peer '5529' is now Reachable. (47ms / 2000ms)
-- Executing [85344@a2billing:3] AGI("SIP/36309-097a0bf8", "a2billing.php") in new stack
-- Launched AGI Script /usr/share/asterisk/agi-bin/a2billing.php
[Jul 6 12:12:54] WARNING[2876]: file.c:602 ast_openstream_full: File prepaid-sipiax-press9 does not exist in any format
[Jul 6 12:12:54] WARNING[2876]: file.c:912 ast_streamfile: Unable to open prepaid-sipiax-press9 (format 0x4 (ulaw)): No such file or directory
[Jul 6 12:12:54] WARNING[2876]: file.c:602 ast_openstream_full: File prepaid-sipiax-enternumber does not exist in any format
[Jul 6 12:12:54] WARNING[2876]: file.c:912 ast_streamfile: Unable to open prepaid-sipiax-enternumber (format 0x4 (ulaw)): No such file or directory
[Jul 6 12:12:54] WARNING[2876]: file.c:602 ast_openstream_full: File prepaid-sipiax-press9 does not exist in any format
[Jul 6 12:12:54] WARNING[2876]: file.c:912 ast_streamfile: Unable to open prepaid-sipiax-press9 (format 0x4 (ulaw)): No such file or directory
[Jul 6 12:12:54] WARNING[2876]: file.c:602 ast_openstream_full: File prepaid-sipiax-enternumber does not exist in any format
[Jul 6 12:12:54] WARNING[2876]: file.c:912 ast_streamfile: Unable to open prepaid-sipiax-enternumber (format 0x4 (ulaw)): No such file or directory
[Jul 6 12:12:54] WARNING[2876]: file.c:602 ast_openstream_full: File prepaid-sipiax-press9 does not exist in any format
[Jul 6 12:12:54] WARNING[2876]: file.c:912 ast_streamfile: Unable to open prepaid-sipiax-press9 (format 0x4 (ulaw)): No such file or directory
[Jul 6 12:12:54] WARNING[2876]: file.c:602 ast_openstream_full: File prepaid-sipiax-enternumber does not exist in any format
[Jul 6 12:12:54] WARNING[2876]: file.c:912 ast_streamfile: Unable to open prepaid-sipiax-enternumber (format 0x4 (ulaw)): No such file or directory
== Spawn extension (a2billing, 85344, 3) exited non-zero on 'SIP/36309-097a0bf8'



And do not call the local extension.


stavros wrote:
pedromuniz8 wrote:
I tried both ways and not achieve what may be happening?
You could read your PHP log file (or perhaps syslog) to see what errors occurred.


Top
 Profile  
 
 Post subject: A2billing don`t work
PostPosted: Wed Jul 08, 2009 5:09 pm 
Offline

Joined: Wed Jun 03, 2009 4:31 pm
Posts: 7
Now I put the folder common in :

/usr/share/asterisk

If I put the command it shows me the exit:

root@ubuntu:~# yes "" | php /usr/share/asterisk/agi-bin/a2billing.php 1
GET VARIABLE IDCONF
ANSWER
GET DATA prepaid-enter-pin-number 6000 20
STREAM FILE prepaid-invalid-digits "#" 0
GET DATA prepaid-enter-pin-number 6000 20
STREAM FILE prepaid-invalid-digits "#" 0
GET DATA prepaid-enter-pin-number 6000 20
HANGUP

But when you send the call to a branch, he tells me the output:


Parsing '/etc/asterisk/sip_notify.conf': Found
[Jul 6 12:12:52] NOTICE[2535]: chan_sip.c:15094 handle_request_subscribe: Received SIP subscribe for peer without mailbox: 36309
-- Executing [85344@a2billing:1] Answer("SIP/36309-097a0bf8", "") in new stack
-- Executing [85344@a2billing:2] Wait("SIP/36309-097a0bf8", "2") in new stack
[Jul 6 12:12:53] NOTICE[2535]: chan_sip.c:12669 handle_response_peerpoke: Peer '5529' is now Reachable. (47ms / 2000ms)
-- Executing [85344@a2billing:3] AGI("SIP/36309-097a0bf8", "a2billing.php") in new stack
-- Launched AGI Script /usr/share/asterisk/agi-bin/a2billing.php
[Jul 6 12:12:54] WARNING[2876]: file.c:602 ast_openstream_full: File prepaid-sipiax-press9 does not exist in any format
[Jul 6 12:12:54] WARNING[2876]: file.c:912 ast_streamfile: Unable to open prepaid-sipiax-press9 (format 0x4 (ulaw)): No such file or directory
[Jul 6 12:12:54] WARNING[2876]: file.c:602 ast_openstream_full: File prepaid-sipiax-enternumber does not exist in any format
[Jul 6 12:12:54] WARNING[2876]: file.c:912 ast_streamfile: Unable to open prepaid-sipiax-enternumber (format 0x4 (ulaw)): No such file or directory
[Jul 6 12:12:54] WARNING[2876]: file.c:602 ast_openstream_full: File prepaid-sipiax-press9 does not exist in any format
[Jul 6 12:12:54] WARNING[2876]: file.c:912 ast_streamfile: Unable to open prepaid-sipiax-press9 (format 0x4 (ulaw)): No such file or directory
[Jul 6 12:12:54] WARNING[2876]: file.c:602 ast_openstream_full: File prepaid-sipiax-enternumber does not exist in any format
[Jul 6 12:12:54] WARNING[2876]: file.c:912 ast_streamfile: Unable to open prepaid-sipiax-enternumber (format 0x4 (ulaw)): No such file or directory
[Jul 6 12:12:54] WARNING[2876]: file.c:602 ast_openstream_full: File prepaid-sipiax-press9 does not exist in any format
[Jul 6 12:12:54] WARNING[2876]: file.c:912 ast_streamfile: Unable to open prepaid-sipiax-press9 (format 0x4 (ulaw)): No such file or directory
[Jul 6 12:12:54] WARNING[2876]: file.c:602 ast_openstream_full: File prepaid-sipiax-enternumber does not exist in any format
[Jul 6 12:12:54] WARNING[2876]: file.c:912 ast_streamfile: Unable to open prepaid-sipiax-enternumber (format 0x4 (ulaw)): No such file or directory
== Spawn extension (a2billing, 85344, 3) exited non-zero on 'SIP/36309-097a0bf8'



And do not call the local extension.


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


All times are UTC


Who is online

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