Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Mar 28, 2024 9:51 am
Hosted Voice Broadcast


All times are UTC




Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Hang-up after announcing balance
PostPosted: Thu Feb 18, 2010 10:21 pm 
Offline

Joined: Wed Mar 15, 2006 11:58 pm
Posts: 325
Hi Guys,

I have a situation where A2Billing hangs-up with Error 0 after announcing balance. Using custom trunk from FreePBX to send calls to A2Billing which authenticates based on CLID and DNID =yes.

following is what I get at the end:

Code:
  a2billing.php|1: file:Class.A2Billing.php - line:2552 - uniqueid:1266530554.84 -  - Account code - 6350886569 ::> 4
  a2billing.php|1: file:Class.A2Billing.php - line:742 - uniqueid:1266530554.84 - [CARD STATUS UPDATE] ::> 4
  a2billing.php|1: file:Class.A2Billing.php - line:751 - uniqueid:1266530554.84 - [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse=inuse+1, credit=credit-0.25 WHERE username='6350886569'] ::> 4
  a2billing.php|1: file:Class.A2Billing.php - line:2930 - uniqueid:1266530554.84 - [A2Billing] SAY BALANCE : 5.00000
  a2billing.php|1:  ::> 4
  a2billing.php|1: file:Class.A2Billing.php - line:1787 - uniqueid:1266530554.84 - [CURRENCY : USD] ::> 4
  a2billing.php|1: file:Class.A2Billing.php - line:1794 - uniqueid:1266530554.84 - [BEFORE: 5 SPRINTF : 5.00] ::> 4
    -- Playing 'prepaid-you-have' (escape_digits=#) (sample_offset 0)
[b]    -- <SIP/9999-09569dc8> Playing 'digits/5' (language 'en')[/b]
    -- Playing 'dollars' (escape_digits=#) (sample_offset 0)
  a2billing.php|1: file:a2billing.php - line:173 - uniqueid:1266530554.84 - [TRY : callingcard_ivr_authenticate] ::> 4
  a2billing.php|1: file:Class.A2Billing.php - line:2239 - uniqueid:1266530554.84 - [AUTO SetCallerID] ::> 4
  a2billing.php|1: file:Class.A2Billing.php - line:2245 - uniqueid:1266530554.84 - [REQUESTED SetCallerID : 9999] ::> 4
  a2billing.php|1: file:Class.A2Billing.php - line:2257 - uniqueid:1266530554.84 - [EXEC SetCallerID : 9999] ::> 4
  a2billing.php|1: file:Class.A2Billing.php - line:742 - uniqueid:1266530554.84 - [CARD STATUS UPDATE] ::> 4
  a2billing.php|1: file:Class.A2Billing.php - line:751 - uniqueid:1266530554.84 - [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse=inuse-1, credit=credit+0.25 WHERE username='6350886569'] ::> 4
    -- AGI Script a2billing.php completed, returning 0


VERY STRANGE....ANY THOUGHTS?

Thanks


Top
 Profile  
 
 Post subject: Re: Hang-up after announcing balance
PostPosted: Fri Feb 19, 2010 6:39 am 
Offline

Joined: Fri Jun 23, 2006 3:56 pm
Posts: 4065
How are you moving the calls over from FPBX to A2B?

You must use some code like this in FreePBX:-

Code:
   [macro-dialout-trunk-predial-hook]
   exten => s,1,GotoIf($["${OUT_${DIAL_TRUNK}:4:4}" = "A2B/"]?custom-freepbx-a2billing,${OUTNUM},1:2)
   exten => s,2,MacroExit

   [custom-freepbx-a2billing]
   exten => _X.,1,Set(CALLERID(dnid)=${EXTEN})
   exten => _X.,n,DeadAGI(a2billing.php|${OUT_${DIAL_TRUNK}:8})
   exten => _X.,n,Hangup()


Create a custom trunk called A2B/1 (or A2B/2 to use agi-conf2) and use the accountcode field in FPBX extensions to authenticate

Joe


Top
 Profile  
 
 Post subject: Re: Hang-up after announcing balance
PostPosted: Fri Feb 19, 2010 5:09 pm 
Offline

Joined: Wed Mar 15, 2006 11:58 pm
Posts: 325
That's exactly what is done.
FreePBX extension is added as authenticated CallerID to A2Billing Customer account. A2B/1 custom trunk is made. As you can see call has been authenticated and balance is announced but then the dial string is missing.

Funny thing is that if I remove the mya2billing database and redo everything it all works fine but fails after a day or two. Seems to me like a hack going on...

Where are the logs for php to check what happens that it exits with ZERO? Why does a2billing.php exits with 0 and what can be the causes?

Thanks


Top
 Profile  
 
 Post subject: Re: Hang-up after announcing balance
PostPosted: Fri Feb 19, 2010 5:12 pm 
Offline

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

Use the accountcode not the callerID.

it sounds as if the problem lies in A2Billing somewhere rather than the interaction between the two.

Test A2Billing outside of FreePBX.

tail /var/log/asterisk/full with the verbosity turned up in the agi-conf

Joe


Top
 Profile  
 
 Post subject: Re: Hang-up after announcing balance
PostPosted: Fri Feb 19, 2010 9:20 pm 
Offline

Joined: Wed Mar 15, 2006 11:58 pm
Posts: 325
Joe,

Can you please explain how to use the Account Code rather than Caller ID? I do see the Accountcode field in FreePBX but from there on I am not sure what should be put in that and what should be used in A2Billing to authenticate this. Also, what are the advantages of using this over CLID? security probably!?

Here is a full log with tail -f /var/log/asterisk/full turned on. This puzzles me:

Code:
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [18004664411@from-internal:1] Macro("SIP/9999-09603280", "user-callerid|SKIPTTL|") in new stack
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-user-callerid:1] Set("SIP/9999-09603280", "AMPUSER=9999") in new stack
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: Set
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-user-callerid:2] GotoIf("SIP/9999-09603280", "0?report") in new stack
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: GotoIf
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-user-callerid:3] ExecIf("SIP/9999-09603280", "1|Set|REALCALLERIDNUM=9999") in new stack
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: ExecIf
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-user-callerid:4] Set("SIP/9999-09603280", "AMPUSER=9999") in new stack
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: Set
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-user-callerid:5] Set("SIP/9999-09603280", "AMPUSERCIDNAME=9999") in new stack
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: Set
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-user-callerid:6] GotoIf("SIP/9999-09603280", "0?report") in new stack
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: GotoIf
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-user-callerid:7] Set("SIP/9999-09603280", "AMPUSERCID=9999") in new stack
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: Set
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-user-callerid:8] Set("SIP/9999-09603280", "CALLERID(all)="9999" <9999>") in new stack
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: Set
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-user-callerid:9] GotoIf("SIP/9999-09603280", "1?continue") in new stack
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Goto (macro-user-callerid,s,18)
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: GotoIf
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-user-callerid:18] NoOp("SIP/9999-09603280", "Using CallerID "9999" <9999>") in new stack
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: Noop
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [18004664411@from-internal:2] Set("SIP/9999-09603280", "_NODEST=") in new stack
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [18004664411@from-internal:3] Macro("SIP/9999-09603280", "record-enable|9999|OUT|") in new stack
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-record-enable:1] GotoIf("SIP/9999-09603280", "1?check") in new stack
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Goto (macro-record-enable,s,4)
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: GotoIf
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-record-enable:4] AGI("SIP/9999-09603280", "recordingcheck|20100219-160946|1266613786.3") in new stack
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Launched AGI Script /var/lib/asterisk/agi-bin/recordingcheck
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   recordingcheck|20100219-160946|1266613786.3: Outbound recording not enabled
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- AGI Script recordingcheck completed, returning 0
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: AGI
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-record-enable:5] MacroExit("SIP/9999-09603280", "") in new stack
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [18004664411@from-internal:4] Macro("SIP/9999-09603280", "dialout-trunk|12|18004664411||") in new stack
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-dialout-trunk:1] Set("SIP/9999-09603280", "DIAL_TRUNK=12") in new stack
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: Set
[2010-02-19 16:09:46] DEBUG[3044] func_db.c: DB: AMPUSER/9999/pinless not found in database.
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-dialout-trunk:2] GosubIf("SIP/9999-09603280", "0?sub-pincheck|s|1") in new stack
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: GosubIf
[2010-02-19 16:09:46] DEBUG[3044] func_db.c: DB: AMPUSER/9999/pinless not found in database.
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-dialout-trunk:3] GotoIf("SIP/9999-09603280", "0?disabletrunk|1") in new stack
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: GotoIf
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-dialout-trunk:4] Set("SIP/9999-09603280", "DIAL_NUMBER=18004664411") in new stack
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: Set
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-dialout-trunk:5] Set("SIP/9999-09603280", "DIAL_TRUNK_OPTIONS=tr") in new stack
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: Set
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-dialout-trunk:6] Set("SIP/9999-09603280", "OUTBOUND_GROUP=OUT_12") in new stack
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: Set
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-dialout-trunk:7] GotoIf("SIP/9999-09603280", "1?nomax") in new stack
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Goto (macro-dialout-trunk,s,9)
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: GotoIf
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-dialout-trunk:9] GotoIf("SIP/9999-09603280", "0?skipoutcid") in new stack
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: GotoIf
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-dialout-trunk:10] Set("SIP/9999-09603280", "DIAL_TRUNK_OPTIONS=") in new stack
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: Set
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-dialout-trunk:11] Macro("SIP/9999-09603280", "outbound-callerid|12") in new stack
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-outbound-callerid:1] ExecIf("SIP/9999-09603280", "0|SetCallerPres|") in new stack
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: ExecIf
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-outbound-callerid:2] ExecIf("SIP/9999-09603280", "0|Set|REALCALLERIDNUM=9999") in new stack
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: ExecIf
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-outbound-callerid:3] GotoIf("SIP/9999-09603280", "1?normcid") in new stack
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Goto (macro-outbound-callerid,s,6)
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: GotoIf
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-outbound-callerid:6] Set("SIP/9999-09603280", "USEROUTCID=") in new stack
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: Set
[2010-02-19 16:09:46] DEBUG[3044] func_db.c: DB: DEVICE/9999/emergency_cid not found in database.
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-outbound-callerid:7] Set("SIP/9999-09603280", "EMERGENCYCID=") in new stack
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: Set
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-outbound-callerid:8] Set("SIP/9999-09603280", "TRUNKOUTCID=") in new stack
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: Set
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-outbound-callerid:9] GotoIf("SIP/9999-09603280", "1?trunkcid") in new stack
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Goto (macro-outbound-callerid,s,12)
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: GotoIf
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-outbound-callerid:12] ExecIf("SIP/9999-09603280", "0|Set|CALLERID(all)=") in new stack
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: ExecIf
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-outbound-callerid:13] ExecIf("SIP/9999-09603280", "0|Set|CALLERID(all)=") in new stack
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: ExecIf
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-outbound-callerid:14] ExecIf("SIP/9999-09603280", "0|SetCallerPres|prohib_passed_screen") in new stack
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: ExecIf
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: Macro
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-dialout-trunk:12] ExecIf("SIP/9999-09603280", "0|AGI|fixlocalprefix") in new stack
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: ExecIf
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-dialout-trunk:13] Set("SIP/9999-09603280", "OUTNUM=18004664411") in new stack
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: Set
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-dialout-trunk:14] Set("SIP/9999-09603280", "custom=AMP") in new stack
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: Set
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-dialout-trunk:15] ExecIf("SIP/9999-09603280", "0|Set|DIAL_TRUNK_OPTIONS=M(setmusic^)") in new stack
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: ExecIf
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-dialout-trunk:16] Macro("SIP/9999-09603280", "dialout-trunk-predial-hook|") in new stack
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [s@macro-dialout-trunk-predial-hook:1] GotoIf("SIP/9999-09603280", "1?custom-freepbx-a2billing|18004664411|1:2") in new stack
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Goto (custom-freepbx-a2billing,18004664411,1)
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: GotoIf
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   == Channel 'SIP/9999-09603280' jumping out of macro 'dialout-trunk-predial-hook'
[2010-02-19 16:09:46] DEBUG[3044] app_macro.c: Executed application: Macro
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   == Channel 'SIP/9999-09603280' jumping out of macro 'dialout-trunk'
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Executing [18004664411@custom-freepbx-a2billing:1] DeadAGI("SIP/9999-09603280", "a2billing.php|1") in new stack
[2010-02-19 16:09:46] WARNING[3044] res_agi.c: Running DeadAGI on a live channel will cause problems, please use AGI
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:     -- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1: file:Class.A2Billing.php - line:596 - uniqueid: - A2Billing AGI internal configuration: ::> 4
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1: file:Class.A2Billing.php - line:597 - uniqueid: - Array
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1: (
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [dialcommand_param_call_2did] => |60|HiL(%timeout%:61000:30000)
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [description] => agi-config
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [asterisk_version] => 1_4
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [answer_call] => 1
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [play_audio] => 1
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [say_goodbye] => 0
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [play_menulanguage] => 0
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [force_language] =>
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [intro_prompt] =>
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [min_credit_2call] => 0
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [min_duration_2bill] => 0
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [notenoughcredit_cardnumber] => 0
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [notenoughcredit_assign_newcardnumber_cid] => 0
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [use_dnid] => 1
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [no_auth_dnid] => Array
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:         (
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:             [0] => 2400
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:             [1] => 2300
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:         )
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [number_try] => 0
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [force_callplan_id] =>
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [say_balance_after_auth] => 1
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [say_balance_after_call] => 0
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [say_rateinitial] => 0
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [say_timetocall] => 1
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [auto_setcallerid] => 1
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [force_callerid] =>
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [cid_sanitize] => 0
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [cid_enable] => 1
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [cid_askpincode_ifnot_callerid] => 1
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [failover_lc_prefix] => 0
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [cid_auto_assign_card_to_cid] => 1
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [callerid_authentication_over_cardnumber] => 0
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [sip_iax_friends] => 0
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [sip_iax_pstn_direct_call_prefix] => 555
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [sip_iax_pstn_direct_call] => 0
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [ivr_voucher] => 0
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [ivr_voucher_prefix] => 8
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [jump_voucher_if_min_credit] => 0
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [dialcommand_param] => |60|HiL(%timeout%:61000:30000)
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [dialcommand_param_sipiax_friend] => |60|HiL(3600000:61000:30000)
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [switchdialcommand] => 0
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [failover_recursive_limit] => 0
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [maxtime_tocall_negatif_free_route] => 5400
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [send_reminder] => 0
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [record_call] => 0
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [monitor_formatfile] => gsm
[2010-02-19 16:09:46] VERBOSE[3044] logger.c:   a2billing.php|1:     [agi_force_currency] =>
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [currency_association] => Array
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:         (
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [0] => usd:dollars
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [1] => mxn:pesos
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [2] => eur:euros
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [3] => all:credit
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:         )
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [local_dialing_addcountryprefix] => 0
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [max_call_call_2_did] => 3600
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [file_conf_enter_destination] => prepaid-enter-dest
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [conf_order_menulang] => en:fr:es
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [callback_bill_1stleg_ifcall_notconnected] => 1
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [international_prefixes] => Array
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:         (
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [0] => 011
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [1] => 00
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:         )
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [extracharge_did] => Array
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:         (
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [0] => 1800
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [1] => 1900
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:         )
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [extracharge_fee] => Array
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:         (
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [0] => 0
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [1] => 0
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:         )
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [extracharge_buyfee] => Array
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:         (
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [0] => 0
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [1] => 0
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:         )
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [maxtime_tounlimited_calls] => 5400
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [maxtime_tofree_calls] => 5400
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [callplan_deck_minute_threshold] =>
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [disable_announcement_seconds] => 0
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [verbosity_level] => 4
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [logging_level] => 3
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [dial_balance_reservation] => 0.25
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [callerid_update] => 0
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [cid_auto_create_card] => 0
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [cid_auto_create_card_len] => 10
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [cid_auto_create_card_typepaid] => PREPAID
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [cid_auto_create_card_credit] => 0
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [cid_auto_create_card_credit_limit] => 0
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [cid_auto_create_card_tariffgroup] => 1
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [logger_enable] => 1
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [log_file] => /var/log/a2billing/a2billing.log
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [dialcommand_param_call_2did ] => |30|HL(3600000:61000:30000)
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [currency_association_internal] => Array
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:         (
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [usd] => dollars
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [mxn] => pesos
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [eur] => euros
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [all] => credit
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:         )
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [file_conf_enter_menulang] => prepaid-menulang
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [ivr_voucher_prefixe] => 8
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [cheat_on_announcement_time] => 0
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1: )
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:  ::> 4
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1: file:a2billing.php - line:102 - uniqueid: - IDCONFIG : 1 ::> 3
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1: file:a2billing.php - line:103 - uniqueid: - MODE : standard ::> 3
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1: file:a2billing.php - line:120 - uniqueid: - AGI Request:
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1: Array
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1: (
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [agi_request] => a2billing.php
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [agi_channel] => SIP/9999-09603280
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [agi_language] => en
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [agi_type] => SIP
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [agi_uniqueid] => 1266613786.3
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [agi_callerid] => 9999
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [agi_calleridname] => 9999
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [agi_callingpres] => 0
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [agi_callingani2] => 0
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [agi_callington] => 0
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [agi_callingtns] => 0
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [agi_dnid] => 18004664411
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [agi_rdnis] => unknown
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [agi_context] => custom-freepbx-a2billing
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [agi_extension] => 18004664411
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [agi_priority] => 1
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [agi_enhanced] => 0.0
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [agi_accountcode] => 9999
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1: )
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:  ::> 4
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1: file:Class.A2Billing.php - line:710 - uniqueid:1266613786.3 -  get_agi_request_parameter = 9999 ; SIP/9999-09603280 ; 1266613786.3 ; 9999 ; 18004664411 ::> 3
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1: file:a2billing.php - line:157 - uniqueid:1266613786.3 - [ANSWER CALL] ::> 3
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1: file:Class.A2Billing.php - line:2342 - uniqueid:1266613786.3 - [CID_ENABLE - CID_CONTROL - CID:9999] ::> 4
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1: file:Class.A2Billing.php - line:2357 - uniqueid:1266613786.3 - Array
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1: (
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:     [0] => Array
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:         (
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [0] => 9999
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [cid] => 9999
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [1] => 3
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [id_cc_card] => 3
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [2] => t
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [activated] => f
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [3] => 5.00000
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [credit] => 5.00000
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [4] => 2
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [tariff] => 2
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [5] => f
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [6] => 0
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [inuse] => 0
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [7] => 1
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [simultaccess] => 1
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [8] => 0
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [typepaid] => 0
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [9] =>
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [creditlimit] =>
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [10] => en
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [language] => en
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [11] => 6350886569
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [username] => 6350886569
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [12] => 0
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [removeinterprefix] => 0
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [13] =>
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [redial] =>
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [14] => 0
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [enableexpire] => 0
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [15] => 1582063136
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [UNIX_TIMESTAMP(expirationdate)] => 1582063136
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [16] => 0
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [expiredays] => 0
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [17] => 0
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [nbused] => 0
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [18] => 0
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [UNIX_TIMESTAMP(firstusedate)] => 0
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [19] => 1266530353
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [UNIX_TIMESTAMP(cc_card.creationdate)] => 1266530353
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [20] => USD
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [currency] => USD
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [21] => test
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [lastname] => test
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [22] => test
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [firstname] => test
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [23] =>
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [email] =>
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [24] => 6348274083
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [uipass] => 6348274083
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [25] => -1
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [id_campaign] => -1
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [26] => 3
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [id] => 3
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [27] => 828351200021093
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [useralias] => 828351200021093
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [28] => 1
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [status] => 1
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [29] => 0
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [voicemail_permitted] => 0
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [30] => 0
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [voicemail_activated] => 0
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [31] => 0
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [restriction] => 0
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [32] => 1
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:             [countryprefix] => 1
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:         )
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1: )
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:  ::> 4
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1: file:Class.A2Billing.php - line:2552 - uniqueid:1266613786.3 -  - Account code - 6350886569 ::> 4
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1: file:Class.A2Billing.php - line:742 - uniqueid:1266613786.3 - [CARD STATUS UPDATE] ::> 4
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1: file:Class.A2Billing.php - line:751 - uniqueid:1266613786.3 - [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse=inuse+1, credit=credit-0.25 WHERE username='6350886569'] ::> 4
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1: file:Class.A2Billing.php - line:2930 - uniqueid:1266613786.3 - [A2Billing] SAY BALANCE : 5.00000
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1:  ::> 4
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1: file:Class.A2Billing.php - line:1787 - uniqueid:1266613786.3 - [CURRENCY : USD] ::> 4
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:   a2billing.php|1: file:Class.A2Billing.php - line:1794 - uniqueid:1266613786.3 - [BEFORE: 5 SPRINTF : 5.00] ::> 4
[2010-02-19 16:09:47] VERBOSE[3044] logger.c:     -- Playing 'prepaid-you-have' (escape_digits=#) (sample_offset 0)
[2010-02-19 16:09:48] VERBOSE[3044] logger.c:     -- <SIP/9999-09603280> Playing 'digits/5' (language 'en')
[2010-02-19 16:09:49] VERBOSE[3044] logger.c:     -- Playing 'dollars' (escape_digits=#) (sample_offset 0)
[2010-02-19 16:09:49] VERBOSE[3044] logger.c:   a2billing.php|1: file:a2billing.php - line:173 - uniqueid:1266613786.3 - [TRY : callingcard_ivr_authenticate] ::> 4
[2010-02-19 16:09:49] VERBOSE[3044] logger.c:   a2billing.php|1: file:Class.A2Billing.php - line:2239 - uniqueid:1266613786.3 - [AUTO SetCallerID] ::> 4
[2010-02-19 16:09:49] VERBOSE[3044] logger.c:   a2billing.php|1: file:Class.A2Billing.php - line:2245 - uniqueid:1266613786.3 - [REQUESTED SetCallerID : 9999] ::> 4
[2010-02-19 16:09:49] VERBOSE[3044] logger.c:   a2billing.php|1: file:Class.A2Billing.php - line:2257 - uniqueid:1266613786.3 - [EXEC SetCallerID : 9999] ::> 4
[2010-02-19 16:09:49] VERBOSE[3044] logger.c:   a2billing.php|1: file:Class.A2Billing.php - line:742 - uniqueid:1266613786.3 - [CARD STATUS UPDATE] ::> 4
[2010-02-19 16:09:49] VERBOSE[3044] logger.c:   a2billing.php|1: file:Class.A2Billing.php - line:751 - uniqueid:1266613786.3 - [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse=inuse-1, credit=credit+0.25 WHERE username='6350886569'] ::> 4
[2010-02-19 16:09:49] VERBOSE[3044] logger.c:     -- AGI Script a2billing.php completed, returning 0


Top
 Profile  
 
 Post subject: Re: Hang-up after announcing balance
PostPosted: Sat Feb 20, 2010 3:51 pm 
Offline

Joined: Wed Mar 15, 2006 11:58 pm
Posts: 325
I figured out the usage of Account code but what I posted previously is still a problem. Here is what I found in /var/log/a2billing/a2billing_agi.log which is odd. I also traced it to a2billing.conf file and I noticed that somehow calls go to CallBack section in a2billing.conf. Why? I need your help with that.

Code:
[19/02/2010 18:05:35]:[file:a2billing.php - line:102 - uniqueid:]:[CallerID:]:[CN:]:[IDCONFIG : 3]
[19/02/2010 18:05:35]:[file:a2billing.php - line:103 - uniqueid:]:[CallerID:]:[CN:]:[MODE : standard]
[19/02/2010 18:05:35]:[file:Class.A2Billing.php - line:710 - uniqueid:1266620735.27]:[CallerID:9999]:[CN:]:[ get_agi_request_parameter = 9999 ; SIP/9999-09672a40 ; 1266620735.27 ; 6350886569 ; 18004664411]
[19/02/2010 18:05:35]:[file:a2billing.php - line:157 - uniqueid:1266620735.27]:[CallerID:9999]:[CN:]:[[ANSWER CALL]]
[19/02/2010 18:05:38]:[CallerID:9999]:[CN:6350886569]:[[exit]]


I assume it's hitting callback and that is why it get's stuck after announcing the balance. My assumption comes from the fact that the last line processed is line 751 in a2billing.conf which is used for callback purpose (/var/log/a2billing/a2billing_agi.log). I don't have callback daemon started. I don't have it setup or configured. Why should this happen?


Top
 Profile  
 
 Post subject: Re: Hang-up after announcing balance
PostPosted: Mon Feb 22, 2010 5:11 pm 
Offline

Joined: Wed Mar 15, 2006 11:58 pm
Posts: 325
Anything guys?


Top
 Profile  
 
 Post subject: Re: Hang-up after announcing balance
PostPosted: Mon Mar 01, 2010 5:41 am 
Offline

Joined: Wed Mar 15, 2006 11:58 pm
Posts: 325
Anyone has any input on this? This problem still remains. Why is this a mystery and nothing can be deciphered out of the logs for this?

Thanks


Top
 Profile  
 
 Post subject: Re: Hang-up after announcing balance
PostPosted: Tue Mar 02, 2010 2:05 am 
Offline

Joined: Wed Feb 13, 2008 11:11 am
Posts: 224
Hi bruce,
can you try downloading a fresh copy of a2billing.php and replace the one you are using and set appropriate permissions. I think you have a broken file.

Any good?

Rgds
Eamonn


Top
 Profile  
 
 Post subject: Re: Hang-up after announcing balance
PostPosted: Tue Mar 02, 2010 2:10 am 
Offline

Joined: Wed Mar 15, 2006 11:58 pm
Posts: 325
That's exactly what I thought and I uploaded another copy but result is the same. The funny part is that if I drop database on some servers it works and on others it doesn't. Or it works for a day and then breaks....just strange. I want to get to the bottom of this through debugging so that I know what I do wrong in configuration if any.

But no one knows how to debug something like this despite having all this errors that I mentioned previously.

Thanks for the input.


Top
 Profile  
 
 Post subject: Re: Hang-up after announcing balance
PostPosted: Sat Mar 06, 2010 12:57 am 
Offline

Joined: Wed Feb 13, 2008 11:11 am
Posts: 224
Hi bruce,
Have you cracked this one yet.

Rgds
Eamonn


Top
 Profile  
 
 Post subject: Re: Hang-up after announcing balance
PostPosted: Mon Mar 08, 2010 2:54 pm 
Offline

Joined: Wed Mar 15, 2006 11:58 pm
Posts: 325
Nope. No time. I moved back to v1.4.5.

Are you facing the same problem?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 
Predictive Dialer


All times are UTC


Who is online

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