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