Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Wed Apr 24, 2024 8:54 am
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 34 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
 Post subject: Re: A2billing don`t work
PostPosted: Wed Jul 08, 2009 8:57 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
pedromuniz8 wrote:
-- Executing [85344@a2billing:3] AGI("SIP/36309-097a0bf8", "a2billing.php") in new stack
You should be using DeadAGI().
Quote:
File prepaid-sipiax-press9 does not exist in any format
You haven't installed the sounds correctly.
Quote:
And do not call the local extension.
A2B can only route calls to registered SIP/IAX friends that are created within A2B itself, not those you are already using with Asterisk. You could use either SIP/IAX friend calls, or an A2B DID.


Top
 Profile  
 
 Post subject: Re: Fatal error: Class' AGI 'not found in / var/lib/asterisk/agi
PostPosted: Thu Jul 09, 2009 7:03 pm 
Offline
User avatar

Joined: Tue Dec 04, 2007 12:05 am
Posts: 295
evely wrote:
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?

UHm to me the user is asterisk and all see ok But not show nothing
any idea?

agi-bin]# yes "" | php a2billing.php 1
[root@xxx agi-bin]#


Top
 Profile  
 
 Post subject: Re: Fatal error: Class' AGI 'not found in / var/lib/asterisk/agi
PostPosted: Fri Jul 10, 2009 11:44 am 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
gineta wrote:
UHm to me the user is asterisk and all see ok But not show nothing
any idea?

agi-bin]# yes "" | php a2billing.php 1
[root@xxx agi-bin]#
Your PHP is not logging errors to stdout. Ensure error logging is enabled for PHP, and read whichever log-file receives its output.


Top
 Profile  
 
 Post subject: Re: Fatal error: Class' AGI 'not found in / var/lib/asterisk/agi
PostPosted: Fri Jul 10, 2009 9:51 pm 
Offline
User avatar

Joined: Tue Dec 04, 2007 12:05 am
Posts: 295
evely wrote:
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?


I see many times now this new a2billing 1.4 and I get the seam error on line 47
and in the CLI
Quote:
-- Executing [34958349117@a2billing:1] Answer("SIP/7922249278-b7d0a3d8", "") in new stack
-- Executing [34958349117@a2billing:2] Wait("SIP/7922249278-b7d0a3d8", "1") in new stack
-- Executing [34958349117@a2billing:3] DeadAGI("SIP/7922249278-b7d0a3d8", "a2billing.php|1") in new stack
[Jul 10 22:16:31] WARNING[13880]: res_agi.c:2203 deadagi_exec: Running DeadAGI on a live channel will cause problems, please use AGI
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
[Jul 10 22:16:31] ERROR[13880]: utils.c:966 ast_carefulwrite: write() returned error: Broken pipe
-- AGI Script a2billing.php completed, returning 0
-- Executing [34958349117@a2billing:4] Hangup("SIP/7922249278-b7d0a3d8", "") in new stack
== Spawn extension (a2billing, 34958349117, 4) exited non-zero on 'SIP/7922249278-b7d0a3d8'

ALso I get this new error after reinstall a2billing returned error: Broken pipe

I nto have idea where look more
Any ideas
Thanks in advance


Top
 Profile  
 
 Post subject: Re: Failed to execute a2billing.php
PostPosted: Fri Jul 10, 2009 11:37 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
You need to ascertain exactly why the script is terminating abnormally.
As I suggested previously, ensure there is a valid logging destination configured in your php.ini and pay heed to it.


Top
 Profile  
 
 Post subject: Re: Failed to execute a2billing.php
PostPosted: Sat Jul 11, 2009 1:20 am 
Offline
User avatar

Joined: Tue Dec 04, 2007 12:05 am
Posts: 295
Many Thanks
A nice guide.
But also if I activate all the posibility not show more useful information.

At the end I solve the instalation with delete the redirection to the lib in agi-bin
Quote:
and copy the full "lib" inside agi-bin

Now the system make calls

And now the system show the correct information:
Quote:
yes "" | php /var/lib/asterisk/agi-bin/a2billing.php 1
GET VARIABLE IDCONF
ANSWER
GET DATA prepaid-enter-pin-number 6000 15
STREAM FILE prepaid-invalid-digits "#" 0
GET DATA prepaid-enter-pin-number 6000 15
STREAM FILE prepaid-invalid-digits "#" 0
GET DATA prepaid-enter-pin-number 6000 15
HANGUP


Also I see a2billing work better if you update the system like show in http://www.asterisk2billing.org/cgi-bin ... ticket/501
I think this solve all this thread about a2billing.php


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

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
gineta wrote:
delete the redirection to the lib in agi-bin
That shouldn't be necessary. A symlink suffices perfectly for me here, and makes updating much less error-prone.


Top
 Profile  
 
 Post subject: Re: Failed to execute a2billing.php
PostPosted: Tue Jul 14, 2009 8:33 pm 
Offline

Joined: Thu Jun 22, 2006 12:01 am
Posts: 29
Hi
Ive spent the last 3 days trying to get a2b v 1.4 to work on trixbox 2.8 but to no avail.

The error i'm getting is : [Jul 14 01:42:01] WARNING[11243] res_agi.c: DeadAGI has been deprecated, please use AGI in all cases!
[Jul 14 01:42:01] WARNING[11243] res_agi.c: Failed to execute '/var/lib/asterisk/agi-bin/a2billing.php|1': File does not exist.
[Jul 14 01:42:01] VERBOSE[11243] logger.c: -- Executing [_X.@custom-a2billing:6] ^[[1;36;40mHangup^[[0;37;40m("^[[1;35;40mSIP/xxxxxxxxxxx-b7511d88^[[0;37;40m", "^[[1;35;40m^[[0;37;40m") in new stack
[Jul 14 01:42:01] VERBOSE[11243] logger.c: == Spawn extension (custom-a2billing, _X., 6) exited non-zero on

Further look in /var/log/messages shows following:

Jul 15 03:37:30 trixbox1 php: file:Class.A2Billing.php - line:2632 - uniqueid: - CARDNUMBER ::> -1 ::> 4
Jul 15 03:37:30 trixbox1 php: file:Class.A2Billing.php - line:2642 - uniqueid: - PREPAID-INVALID-DIGITS ::> 4
Jul 15 03:37:30 trixbox1 php: file:a2billing.php - line:157 - uniqueid: - [TRY : callingcard_ivr_authenticate] ::> 4
Jul 15 03:37:30 trixbox1 php: file:a2billing.php - line:349 - uniqueid: - [AUTHENTICATION FAILED (cia_res:-1)] ::> 2
I 've read uncountable times

I followed Joe's a2b 1.4 installation guide.
I've read widely in this forum for possible solution but to no avail. I even had to rebiuld a second new server but same problem re emerged.

php /var/lib/asterisk/agi-bin/a2billing.php -v gives right a2b version number 1.4

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

[trixbox1.localdomain agi-bin]# yes "" | php /var/lib/asterisk/agi-bin/a2billing.php 1
GET VARIABLE IDCONF
VERBOSE "file:Class.A2Billing.php - line:578 - uniqueid: - A2Billing AGI internal configuration: ::> 4" 1
VERBOSE "file:Class.A2Billing.php - line:579 - uniqueid: - Array" 1
VERBOSE "(" 1
VERBOSE " [dialcommand_param_call_2did] => |60|HiL(%timeout%:61000:30000)" 1
VERBOSE " [description] => agi-conf1" 1
VERBOSE " [asterisk_version] => 1_6" 1
VERBOSE " [answer_call] => 1" 1
VERBOSE " [play_audio] => 1" 1
VERBOSE " [say_goodbye] => 0" 1
VERBOSE " [play_menulanguage] => 0" 1
VERBOSE " [force_language] => " 1
VERBOSE " [intro_prompt] => " 1
VERBOSE " [min_credit_2call] => 0" 1
VERBOSE " [min_duration_2bill] => 0" 1
VERBOSE " [notenoughcredit_cardnumber] => 0" 1
VERBOSE " [notenoughcredit_assign_newcardnumber_cid] => 0" 1
VERBOSE " [use_dnid] => 0" 1
VERBOSE " [no_auth_dnid] => Array" 1
VERBOSE " (" 1
VERBOSE " [0] => 2400" 1
VERBOSE " [1] => 2300" 1
VERBOSE " )" 1
VERBOSE "" 1
VERBOSE " [number_try] => 3" 1
VERBOSE " [force_callplan_id] => " 1
VERBOSE " [say_balance_after_auth] => 1" 1
VERBOSE " [say_balance_after_call] => 0" 1
VERBOSE " [say_rateinitial] => 0" 1
VERBOSE " [say_timetocall] => 1" 1
VERBOSE " [auto_setcallerid] => 1" 1
VERBOSE " [force_callerid] => " 1
VERBOSE " [cid_sanitize] => 0" 1
VERBOSE " [cid_enable] => 0" 1
VERBOSE " [cid_askpincode_ifnot_callerid] => 1" 1
VERBOSE " [failover_lc_prefix] => 0" 1
VERBOSE " [cid_auto_assign_card_to_cid] => 1" 1
VERBOSE " [callerid_authentication_over_cardnumber] => 0" 1
VERBOSE " [sip_iax_friends] => 0" 1
VERBOSE " [sip_iax_pstn_direct_call_prefix] => 555" 1
VERBOSE " [sip_iax_pstn_direct_call] => 0" 1
VERBOSE " [ivr_voucher] => 0" 1
VERBOSE " [ivr_voucher_prefix] => 8" 1
VERBOSE " [jump_voucher_if_min_credit] => 0" 1
VERBOSE " [dialcommand_param] => |90|HRL(%timeout%:61000:30000)" 1
VERBOSE " [dialcommand_param_sipiax_friend] => |60|HiL(3600000:61000:30000)" 1
VERBOSE " [switchdialcommand] => 0" 1
VERBOSE " [failover_recursive_limit] => 2" 1
VERBOSE " [maxtime_tocall_negatif_free_route] => 5400" 1
VERBOSE " [send_reminder] => 0" 1
VERBOSE " [record_call] => 0" 1
VERBOSE " [monitor_formatfile] => gsm" 1
VERBOSE " [agi_force_currency] => " 1
VERBOSE " [currency_association] => Array" 1
VERBOSE " (" 1
VERBOSE " [0] => usd:dollars" 1
VERBOSE " [1] => mxn:pesos" 1
VERBOSE " [2] => eur:euros" 1
VERBOSE " [3] => all:credit" 1
VERBOSE " )" 1
VERBOSE "" 1
VERBOSE " [local_dialing_addcountryprefix] => 0" 1
VERBOSE " [max_call_call_2_did] => 3600" 1
VERBOSE " [file_conf_enter_destination] => prepaid-enter-dest" 1
VERBOSE " [conf_order_menulang] => en:fr:es" 1
VERBOSE " [callback_bill_1stleg_ifcall_notconnected] => 1" 1
VERBOSE " [international_prefixes] => Array" 1
VERBOSE " (" 1
VERBOSE " [0] => 011" 1
VERBOSE " [1] => 00" 1
VERBOSE " [2] => 09" 1
VERBOSE " [3] => 1" 1
VERBOSE " )" 1
VERBOSE "" 1
VERBOSE " [extracharge_did] => Array" 1
VERBOSE " (" 1
VERBOSE " [0] => 1800" 1
VERBOSE " [1] => 1900" 1
VERBOSE " )" 1
VERBOSE "" 1
VERBOSE " [extracharge_fee] => Array" 1
VERBOSE " (" 1
VERBOSE " [0] => 0" 1
VERBOSE " [1] => 0" 1
VERBOSE " )" 1
VERBOSE "" 1
VERBOSE " [extracharge_buyfee] => Array" 1
VERBOSE " (" 1
VERBOSE " [0] => 0" 1
VERBOSE " [1] => 0" 1
VERBOSE " )" 1
VERBOSE "" 1
VERBOSE " [maxtime_tounlimited_calls] => 5400" 1
VERBOSE " [maxtime_tofree_calls] => 5400" 1
VERBOSE " [callplan_deck_minute_threshold] => " 1
VERBOSE " [disable_announcement_seconds] => 0" 1
VERBOSE " [verbosity_level] => 4" 1
VERBOSE " [logging_level] => 4" 1
VERBOSE " [dial_balance_reservation] => 0.25" 1
VERBOSE " [callerid_update] => 0" 1
VERBOSE " [logger_enable] => 1" 1
VERBOSE " [log_file] => /var/log/a2billing/a2billing.log" 1
VERBOSE " [cid_auto_create_card_len] => 10" 1
VERBOSE " [currency_association_internal] => Array" 1
VERBOSE " (" 1
VERBOSE " [usd] => dollars" 1
VERBOSE " [mxn] => pesos" 1
VERBOSE " [eur] => euros" 1
VERBOSE " [all] => credit" 1
VERBOSE " )" 1
VERBOSE "" 1
VERBOSE " [file_conf_enter_menulang] => prepaid-menulang" 1
VERBOSE " [ivr_voucher_prefixe] => 8" 1
VERBOSE " [cheat_on_announcement_time] => 0" 1
VERBOSE ")" 1
VERBOSE " ::> 4" 1
VERBOSE "file:a2billing.php - line:84 - uniqueid: - IDCONFIG : 1 ::> 3" 1
VERBOSE "file:a2billing.php - line:85 - uniqueid: - MODE : standard ::> 3" 1
VERBOSE "file:a2billing.php - line:102 - uniqueid: - AGI Request:" 1
VERBOSE " ::> 4" 1
VERBOSE "file:Class.A2Billing.php - line:692 - uniqueid: - get_agi_request_parameter = ; ; ; ; ::> 3" 1
VERBOSE "file:a2billing.php - line:141 - uniqueid: - [ANSWER CALL] ::> 3" 1
ANSWER
VERBOSE "file:Class.A2Billing.php - line:2464 - uniqueid: - - Account code - ::> 4" 1
VERBOSE "file:Class.A2Billing.php - line:2626 - uniqueid: - Requesting DTMF, CARDNUMBER_LENGTH_MAX 15 ::> 4" 1
GET DATA prepaid-enter-pin-number 6000 15
VERBOSE "file:Class.A2Billing.php - line:2628 - uniqueid: - RES DTMF : -1 ::> 4" 1
VERBOSE "file:Class.A2Billing.php - line:2632 - uniqueid: - CARDNUMBER ::> -1 ::> 4" 1
VERBOSE "file:Class.A2Billing.php - line:2642 - uniqueid: - PREPAID-INVALID-DIGITS ::> 4" 1
STREAM FILE prepaid-invalid-digits "#" 0
VERBOSE "file:Class.A2Billing.php - line:2618 - uniqueid: - PREPAID-INVALID-DIGITS ::> 4" 1
VERBOSE "file:Class.A2Billing.php - line:2626 - uniqueid: - Requesting DTMF, CARDNUMBER_LENGTH_MAX 15 ::> 4" 1
GET DATA prepaid-enter-pin-number 6000 15
VERBOSE "file:Class.A2Billing.php - line:2628 - uniqueid: - RES DTMF : -1 ::> 4" 1
VERBOSE "file:Class.A2Billing.php - line:2632 - uniqueid: - CARDNUMBER ::> -1 ::> 4" 1
VERBOSE "file:Class.A2Billing.php - line:2642 - uniqueid: - PREPAID-INVALID-DIGITS ::> 4" 1
STREAM FILE prepaid-invalid-digits "#" 0
VERBOSE "file:Class.A2Billing.php - line:2618 - uniqueid: - PREPAID-INVALID-DIGITS ::> 4" 1
VERBOSE "file:Class.A2Billing.php - line:2626 - uniqueid: - Requesting DTMF, CARDNUMBER_LENGTH_MAX 15 ::> 4" 1
GET DATA prepaid-enter-pin-number 6000 15
VERBOSE "file:Class.A2Billing.php - line:2628 - uniqueid: - RES DTMF : -1 ::> 4" 1
VERBOSE "file:Class.A2Billing.php - line:2632 - uniqueid: - CARDNUMBER ::> -1 ::> 4" 1
VERBOSE "file:Class.A2Billing.php - line:2642 - uniqueid: - PREPAID-INVALID-DIGITS ::> 4" 1
VERBOSE "file:a2billing.php - line:157 - uniqueid: - [TRY : callingcard_ivr_authenticate] ::> 4" 1
VERBOSE "file:a2billing.php - line:349 - uniqueid: - [AUTHENTICATION FAILED (cia_res:-1)] ::> 2" 1
HANGUP

I would appreciate any help, please.

tboy


Top
 Profile  
 
 Post subject: Re: Failed to execute a2billing.php
PostPosted: Tue Jul 14, 2009 11:32 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
tboy wrote:
Failed to execute '/var/lib/asterisk/agi-bin/a2billing.php|1': File does not exist.
If you read carefully you can see it's try to run a file ending '.php|1', rather than just '.php'. It seems Asterisk syntax has changed. Try changing that '|1' for ',1' in your dialplan, similar to what is described in this other thread.

PS In future, please attach long logs as a .TXT file.


Top
 Profile  
 
 Post subject: Re: Failed to execute a2billing.php
PostPosted: Wed Jul 15, 2009 9:19 am 
Offline

Joined: Thu Jun 22, 2006 12:01 am
Posts: 29
stavros wrote:
tboy wrote:
Failed to execute '/var/lib/asterisk/agi-bin/a2billing.php|1': File does not exist.
If you read carefully you can see it's try to run a file ending '.php|1', rather than just '.php'. It seems Asterisk syntax has changed. Try changing that '|1' for ',1' in your dialplan, similar to what is described in this other thread.

PS In future, please attach long logs as a .TXT file.



Hi Stavros

Thanks for your comments.

I changed it from '|1' to ',1' but did not resolve my problem.
Would appreciate further help please.

Apologies for pasting the file- will attach it as per suggestion in the futhure.

Thanks


Top
 Profile  
 
 Post subject: Re: Failed to execute a2billing.php
PostPosted: Wed Jul 15, 2009 12:02 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
tboy wrote:
I changed it from '|1' to ',1' but did not resolve my problem.
If it's still not working it must be throwing a different error message now.


Top
 Profile  
 
 Post subject: Re: Failed to execute a2billing.php
PostPosted: Wed Jul 15, 2009 12:39 pm 
Offline

Joined: Thu Jun 22, 2006 12:01 am
Posts: 29
stavros wrote:
tboy wrote:
I changed it from '|1' to ',1' but did not resolve my problem.
If it's still not working it must be throwing a different error message now.



Thanking you very much!

It's now working. Had to reboot the server & then it started prompting for pin number.
Don't know why i had to reboot for it to work.Cos after making the modification you suggested, i did "sip reload".

Thanks again!!


Top
 Profile  
 
 Post subject: Re: Failed to execute a2billing.php
PostPosted: Wed Jul 15, 2009 12:47 pm 
Offline
Moderator
User avatar

Joined: Thu Jun 22, 2006 2:19 pm
Posts: 2890
Location: Devon, UK
tboy wrote:
Don't know why i had to reboot for it to work. Cos after making the modification you suggested, i did "sip reload".
You modified extensions.conf, not sip.conf. You needed to 'extensions reload' instead.
For the record, the only upgrade on Linux that needs a reboot is a kernel upgrade, and in fact even that is unnecessary now!


Top
 Profile  
 
 Post subject: Re: Failed to execute a2billing.php
PostPosted: Wed Jul 15, 2009 4:50 pm 
Offline

Joined: Thu Jun 22, 2006 12:01 am
Posts: 29
stavros wrote:
tboy wrote:
Don't know why i had to reboot for it to work. Cos after making the modification you suggested, i did "sip reload".
You modified extensions.conf, not sip.conf. You needed to 'extensions reload' instead.
For the record, the only upgrade on Linux that needs a reboot is a kernel upgrade, and in fact even that is unnecessary now!


Comments noted & appreciated.

Rgds

Tboy


Top
 Profile  
 
 Post subject: Re: Failed to execute a2billing.php
PostPosted: Fri Jul 17, 2009 10:14 pm 
Offline

Joined: Wed Mar 15, 2006 11:58 pm
Posts: 325
Stravos, thanks for the fix of ,1 from |1. Darn Digium and their depricatoin methodes.

Cheers,


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


All times are UTC


Who is online

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