Hi everyone,
I have used a2billing version A2Billing_1.3.4.tar.gz with asterisk 1.4 and all worked fine,
Now i have made a fresh instalation of asterisk 1.6 and a2billing 1.7.0
Operation System Version : CentOS release 5.5 (Final) Asterisk Version : 1.6 PHP Version : 5.2.5 A2B DataBase Version : 1.7.0 User Interface : A2Billing 1.9.4 (Cuprum)
The problem is when i make a call if the user that receive the call hangs up the call is well billed, if the user that make a call hangs the called is billed with duration of 0 seconds and terminate cause is in Blank.
I have googlit and i found some similar problems but with no answers.
I have used AGI and DeadAGI, I used in trunk local and sip and have the same result
Debug when the call is billed correctly
[Jan 23 12:25:37] VERBOSE[8890] logger.c: -- bla bla bla......................... ....................................................................... [Jan 23 12:25:37] VERBOSE[8890] logger.c: -- Called g0/917987123 [Jan 23 12:25:37] VERBOSE[8890] logger.c: -- DAHDI/2-1 is proceeding passing it to Local/917987123@from-internal-dba2;2 [Jan 23 12:25:37] VERBOSE[8886] logger.c: -- Local/917987123@from-internal-dba2;1 is proceeding passing it to SIP/5018-0000039b [Jan 23 12:25:42] VERBOSE[8890] logger.c: -- DAHDI/2-1 is ringing [Jan 23 12:25:42] VERBOSE[8886] logger.c: -- Local/917987123@from-internal-dba2;1 is ringing [Jan 23 12:25:44] VERBOSE[8890] logger.c: -- DAHDI/2-1 answered Local/917987123@from-internal-dba2;2 [Jan 23 12:25:44] VERBOSE[8886] logger.c: -- Local/917987123@from-internal-dba2;1 answered SIP/5018-0000039b [Jan 23 12:25:44] VERBOSE[8890] logger.c: -- Executing [h@macro-dialout-trunk:1] Macro("Local/917987123@from-internal-dba2;2", "hangupcall,") in new stack [Jan 23 12:25:44] VERBOSE[8890] logger.c: -- Executing [s@macro-hangupcall:1] GotoIf("Local/917987123@from-internal-dba2;2", "1?skiprg") in new stack [Jan 23 12:25:44] VERBOSE[8890] logger.c: -- Goto (macro-hangupcall,s,4) [Jan 23 12:25:44] VERBOSE[8890] logger.c: -- Executing [s@macro-hangupcall:4] GotoIf("Local/917987123@from-internal-dba2;2", "1?skipblkvm") in new stack [Jan 23 12:25:44] VERBOSE[8890] logger.c: -- Goto (macro-hangupcall,s,7) [Jan 23 12:25:44] VERBOSE[8890] logger.c: -- Executing [s@macro-hangupcall:7] GotoIf("Local/917987123@from-internal-dba2;2", "1?theend") in new stack [Jan 23 12:25:44] VERBOSE[8890] logger.c: -- Goto (macro-hangupcall,s,9) [Jan 23 12:25:44] VERBOSE[8890] logger.c: -- Executing [s@macro-hangupcall:9] Hangup("Local/917987123@from-internal-dba2;2", "") in new stack [Jan 23 12:25:44] VERBOSE[8890] logger.c: == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'Local/917987123@from-internal-dba2;2' in macro 'hangupcall' [Jan 23 12:25:44] VERBOSE[8890] logger.c: == Spawn extension (macro-dialout-trunk, s, 19) exited non-zero on 'Local/917987123@from-internal-dba2;2' in macro 'dialout-trunk' [Jan 23 12:25:44] VERBOSE[8890] logger.c: == Spawn extension (from-internal, 917987123, 4) exited non-zero on 'Local/917987123@from-internal-dba2;2' [Jan 23 12:25:46] VERBOSE[387] logger.c: -- Channel 0/2, span 1 got hangup request, cause 16 [Jan 23 12:25:46] VERBOSE[8886] logger.c: -- Hungup 'DAHDI/2-1' [Jan 23 12:25:46] VERBOSE[8886] logger.c: a2billing.php,2: file:Class.RateEngine.php - line:1274 - uniqueid:1327321527.3367 - DIAL local/917987123@from-internal,90,T [Jan 23 12:25:46] VERBOSE[8886] logger.c: a2billing.php,2: file:Class.RateEngine.php - line:1157 - uniqueid:1327321527.3367 - [TRUNK STATUS UPDATE : UPDATE cc_trunk SET inuse=inuse-1 WHERE id_trunk='2'] [Jan 23 12:25:46] VERBOSE[8886] logger.c: a2billing.php,2: file:Class.RateEngine.php - line:1422 - uniqueid:1327321527.3367 - -> dialstatus : ANSWER, answered time is 2 [Jan 23 12:25:46] VERBOSE[8886] logger.c: a2billing.php,2: [Jan 23 12:25:46] VERBOSE[8886] logger.c: a2billing.php,2: file:Class.RateEngine.php - line:1426 - uniqueid:1327321527.3367 - [USEDRATECARD=0] [Jan 23 12:25:46] VERBOSE[8886] logger.c: a2billing.php,2: file:Class.RateEngine.php - line:959 - uniqueid:1327321527.3367 - :[sessiontime:2 - id_cc_package_offer:-1 - package2apply:] [Jan 23 12:25:46] VERBOSE[8886] logger.c: a2billing.php,2: [Jan 23 12:25:46] VERBOSE[8886] logger.c: a2billing.php,2: [Jan 23 12:25:46] VERBOSE[8886] logger.c: a2billing.php,2: file:Class.RateEngine.php - line:736 - uniqueid:1327321527.3367 - [CC_RATE_ENGINE_CALCULCOST: K=0 - CALLDURATION:2 - freetimetocall_used=0 - freetimetocall_left=0] [Jan 23 12:25:46] VERBOSE[8886] logger.c: a2billing.php,2: file:Class.RateEngine.php - line:814 - uniqueid:1327321527.3367 - [TEMP - CC_RATE_ENGINE_CALCULCOST: 1. COST: -0.14]:[ (60/60) * 0.14 ] [Jan 23 12:25:46] VERBOSE[8886] logger.c: a2billing.php,2: file:Class.RateEngine.php - line:899 - uniqueid:1327321527.3367 - [CC_RATE_ENGINE_CALCULCOST: K=0 - BUYCOST:-0.14 - SELLING COST:-0.14] [Jan 23 12:25:46] VERBOSE[8886] logger.c: a2billing.php,2: file:Class.RateEngine.php - line:1042 - uniqueid:1327321527.3367 - [CC_RATE_ENGINE_UPDATESYSTEM: usedratecard K=0 - (sessiontime=2 :: dialstatus=ANSWER :: buycost=0.14 :: cost=-0.14 : signe_cc_call=+: signe=-)] [Jan 23 12:25:46] VERBOSE[8886] logger.c: a2billing.php,2: file:Class.RateEngine.php - line:1107 - uniqueid:1327321527.3367 - [CC_asterisk_stop : SQL: DONE : result=1] [Jan 23 12:25:46] VERBOSE[8886] logger.c: a2billing.php,2: file:Class.RateEngine.php - line:1108 - uniqueid:1327321527.3367 - [CC_asterisk_stop : SQL: INSERT INTO cc_call (uniqueid, sessionid, card_id, nasipaddress, starttime, sessiontime, real_sessiontime, calledstation, terminatecauseid, stoptime, sessionbill, id_tariffgroup, id_tariffplan, id_ratecard, id_trunk, src, sipiax, buycost, id_card_package_offer, dnid, destination) VALUES ('1327321527.3367', 'SIP/5018-0000039b', '1', '', SUBDATE(CURRENT_TIMESTAMP, INTERVAL 2 SECOND) , '2', '2', '917987123', 1, now() , '+0.14', '1', '1', '1', '2', '5018', '0', '0.14', NULL, '917987123', '9')] [Jan 23 12:25:46] VERBOSE[8886] logger.c: a2billing.php,2: file:Class.RateEngine.php - line:1132 - uniqueid:1327321527.3367 - [CC_asterisk_stop 1.2: SQL: UPDATE cc_card SET credit= credit-0.14 , lastuse=now(), nbused=nbused+1 WHERE username='6877498212'] [Jan 23 12:25:46] VERBOSE[8886] logger.c: a2billing.php,2: file:Class.RateEngine.php - line:1137 - uniqueid:1327321527.3367 - UPDATE cc_trunk SET secondusedreal = secondusedreal + 2 WHERE id_trunk='2' [Jan 23 12:25:46] VERBOSE[8886] logger.c: a2billing.php,2: file:Class.RateEngine.php - line:1141 - uniqueid:1327321527.3367 - UPDATE cc_tariffplan SET secondusedreal = secondusedreal + 2 WHERE id='1' [Jan 23 12:25:46] VERBOSE[8886] logger.c: a2billing.php,2: file:a2billing.php - line:588 - uniqueid:1327321527.3367 - [a2billing account stop] [Jan 23 12:25:47] NOTICE[8886] res_agi.c: FONALITY: Hangup detected, AGI terminates. [Jan 23 12:25:47] VERBOSE[8886] logger.c: == Spawn extension (a2billing2, 917987123, 2) exited non-zero on 'SIP/5018-0000039b'
Log when the call is not billed correctly
[Jan 23 12:31:37] VERBOSE[9055] logger.c: -- Executing [917987123@a2billing2:1] Answer("SIP/5018-000003a7", "") in new stack [Jan 23 12:31:37] DEBUG[374] pbx.c: FONALITY: This thread has already held the conlock, skip locking [Jan 23 12:31:37] VERBOSE[9055] logger.c: -- Executing [917987123@a2billing2:2] DeadAGI("SIP/5018-000003a7", "a2billing.php,2") in new stack [Jan 23 12:31:37] WARNING[9055] res_agi.c: DeadAGI has been deprecated, please use AGI in all cases! [Jan 23 12:31:37] VERBOSE[9055] logger.c: -- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php [Jan 23 12:31:38] VERBOSE[9055] logger.c: a2billing.php,2: file:Class.A2Billing.php - line:604 - uniqueid: - A2Billing AGI internal configuration: [Jan 23 12:31:38] VERBOSE[9055] logger.c: a2billing.php,2: file:Class.A2Billing.php - line:605 - uniqueid: - Array [Jan 23 12:31:38] VERBOSE[9055] logger.c: a2billing.php,2: ( [Jan 23 12:31:38] VERBOSE[9055] logger.c: a2billing.php,2: [dialcommand_param_call_2did] => [Jan 23 12:31:38] VERBOSE[9055] logger.c: a2billing.php,2: [description] => agi-config [Jan 23 12:31:38] VERBOSE[9055] logger.c: a2billing.php,2: [asterisk_version] => 1_6 [Jan 23 12:31:38] VERBOSE[9055] logger.c: a2billing.php,2: [answer_call] => 0 [Jan 23 12:31:38] VERBOSE[9055] logger.c: a2billing.php,2: [play_audio] => 0 [Jan 23 12:31:38] VERBOSE[9055] logger.c: a2billing.php,2: [say_goodbye] => 0 [Jan 23 12:31:38] VERBOSE[9055] logger.c: a2billing.php,2: [play_menulanguage] => 1 [Jan 23 12:31:38] VERBOSE[9055] logger.c: a2billing.php,2: [force_language] => [Jan 23 12:31:38] VERBOSE[9055] logger.c: a2billing.php,2: [intro_prompt] => [Jan 23 12:31:38] VERBOSE[9055] logger.c: a2billing.php,2: [min_credit_2call] => 0 [Jan 23 12:31:38] VERBOSE[9055] logger.c: a2billing.php,2: [min_duration_2bill] => 1 [Jan 23 12:31:38] VERBOSE[9055] logger.c: a2billing.php,2: [notenoughcredit_cardnumber] => 0 [Jan 23 12:31:38] VERBOSE[9055] logger.c: a2billing.php,2: [notenoughcredit_assign_newcardnumber_cid] => 0 [Jan 23 12:31:38] VERBOSE[9055] logger.c: a2billing.php,2: [use_dnid] => 1 [Jan 23 12:31:38] VERBOSE[9055] logger.c: a2billing.php,2: [no_auth_dnid] => Array [Jan 23 12:31:38] VERBOSE[9055] logger.c: a2billing.php,2: ( [Jan 23 12:31:38] VERBOSE[9055] logger.c: a2billing.php,2: [0] => 2400 [Jan 23 12:31:38] VERBOSE[9055] logger.c: a2billing.php,2: [1] => 2300 [Jan 23 12:31:38] VERBOSE[9055] logger.c: a2billing.php,2: ) [Jan 23 12:31:38] VERBOSE[9055] logger.c: a2billing.php,2: [Jan 23 12:31:38] VERBOSE[9055] logger.c: a2billing.php,2: [number_try] => 1 [Jan 23 12:31:38] VERBOSE[9055] logger.c: a2billing.php,2: [force_callplan_id] => [Jan 23 12:31:38] VERBOSE[9055] logger.c: a2billing.php,2: [say_balance_after_auth] => 0 [Jan 23 12:31:38] VERBOSE[9055] logger.c: a2billing.php,2: [say_balance_after_call] => 0 [Jan 23 12:31:38] VERBOSE[9055] logger.c: a2billing.php,2: [say_rateinitial] => 0 [Jan 23 12:31:39] VERBOSE[9055] logger.c: a2billing.php,2: [say_timetocall] => 0 [Jan 23 12:31:39] VERBOSE[9055] logger.c: a2billing.php,2: [auto_setcallerid] => 1 [Jan 23 12:31:39] VERBOSE[9055] logger.c: a2billing.php,2: [force_callerid] => [Jan 23 12:31:39] VERBOSE[9055] logger.c: a2billing.php,2: [cid_sanitize] => 0 [Jan 23 12:31:39] VERBOSE[9055] logger.c: a2billing.php,2: [cid_enable] => 1 [Jan 23 12:31:39] VERBOSE[9055] logger.c: a2billing.php,2: [cid_askpincode_ifnot_callerid] => 1 [Jan 23 12:31:39] VERBOSE[9055] logger.c: a2billing.php,2: [failover_lc_prefix] => 0 [Jan 23 12:31:39] VERBOSE[9055] logger.c: a2billing.php,2: [cid_auto_assign_card_to_cid] => 1 [Jan 23 12:31:39] VERBOSE[9055] logger.c: a2billing.php,2: [callerid_authentication_over_cardnumber] => 0 [Jan 23 12:31:39] VERBOSE[9055] logger.c: a2billing.php,2: [sip_iax_friends] => 0 [Jan 23 12:31:39] VERBOSE[9055] logger.c: a2billing.php,2: [sip_iax_pstn_direct_call_prefix] => 555 [Jan 23 12:31:39] VERBOSE[9055] logger.c: a2billing.php,2: [sip_iax_pstn_direct_call] => 0 [Jan 23 12:31:39] VERBOSE[9055] logger.c: a2billing.php,2: [ivr_voucher] => 0 [Jan 23 12:31:39] VERBOSE[9055] logger.c: a2billing.php,2: [ivr_voucher_prefix] => 8 [Jan 23 12:31:39] VERBOSE[9055] logger.c: a2billing.php,2: [jump_voucher_if_min_credit] => 0 [Jan 23 12:31:39] VERBOSE[9055] logger.c: a2billing.php,2: [dialcommand_param] => [Jan 23 12:31:39] VERBOSE[9055] logger.c: a2billing.php,2: [dialcommand_param_sipiax_friend] => [Jan 23 12:31:39] VERBOSE[9055] logger.c: a2billing.php,2: [switchdialcommand] => 1 [Jan 23 12:31:39] VERBOSE[9055] logger.c: a2billing.php,2: [failover_recursive_limit] => 2 [Jan 23 12:31:39] VERBOSE[9055] logger.c: a2billing.php,2: [maxtime_tocall_negatif_free_route] => 5400 [Jan 23 12:31:39] VERBOSE[9055] logger.c: a2billing.php,2: [send_reminder] => 0 [Jan 23 12:31:39] VERBOSE[9055] logger.c: a2billing.php,2: [record_call] => 0 [Jan 23 12:31:39] VERBOSE[9055] logger.c: a2billing.php,2: [monitor_formatfile] => gsm [Jan 23 12:31:39] VERBOSE[9055] logger.c: a2billing.php,2: [agi_force_currency] => [Jan 23 12:31:39] VERBOSE[9055] logger.c: a2billing.php,2: [currency_association] => Array [Jan 23 12:31:39] VERBOSE[9055] logger.c: a2billing.php,2: ( [Jan 23 12:31:39] VERBOSE[9055] logger.c: a2billing.php,2: [0] => eur:euros [Jan 23 12:31:39] VERBOSE[9055] logger.c: a2billing.php,2: [1] => usd:dollars [Jan 23 12:31:39] VERBOSE[9055] logger.c: a2billing.php,2: [2] => mxn:pesos [Jan 23 12:31:40] VERBOSE[9055] logger.c: a2billing.php,2: [3] => all:credit [Jan 23 12:31:40] VERBOSE[9055] logger.c: a2billing.php,2: ) [Jan 23 12:31:40] VERBOSE[9055] logger.c: a2billing.php,2: [Jan 23 12:31:40] VERBOSE[9055] logger.c: a2billing.php,2: [local_dialing_addcountryprefix] => 0 [Jan 23 12:31:40] VERBOSE[9055] logger.c: a2billing.php,2: [max_call_call_2_did] => 3600 [Jan 23 12:31:40] VERBOSE[9055] logger.c: a2billing.php,2: [file_conf_enter_destination] => prepaid-enter-dest [Jan 23 12:31:40] VERBOSE[9055] logger.c: a2billing.php,2: [conf_order_menulang] => en:fr:es [Jan 23 12:31:40] VERBOSE[9055] logger.c: a2billing.php,2: [callback_bill_1stleg_ifcall_notconnected] => 1 [Jan 23 12:31:40] VERBOSE[9055] logger.c: a2billing.php,2: [international_prefixes] => Array [Jan 23 12:31:40] VERBOSE[9055] logger.c: a2billing.php,2: ( [Jan 23 12:31:40] VERBOSE[9055] logger.c: a2billing.php,2: [0] => 011 [Jan 23 12:31:40] VERBOSE[9055] logger.c: a2billing.php,2: [1] => 00 [Jan 23 12:31:40] VERBOSE[9055] logger.c: a2billing.php,2: [2] => 09 [Jan 23 12:31:40] VERBOSE[9055] logger.c: a2billing.php,2: [3] => 1 [Jan 23 12:31:40] VERBOSE[9055] logger.c: a2billing.php,2: ) [Jan 23 12:31:40] VERBOSE[9055] logger.c: a2billing.php,2: [Jan 23 12:31:40] VERBOSE[9055] logger.c: a2billing.php,2: [extracharge_did] => Array [Jan 23 12:31:40] VERBOSE[9055] logger.c: a2billing.php,2: ( [Jan 23 12:31:40] VERBOSE[9055] logger.c: a2billing.php,2: [0] => 1800 [Jan 23 12:31:40] VERBOSE[9055] logger.c: a2billing.php,2: [1] => 1900 [Jan 23 12:31:40] VERBOSE[9055] logger.c: a2billing.php,2: ) [Jan 23 12:31:40] VERBOSE[9055] logger.c: a2billing.php,2: [Jan 23 12:31:40] VERBOSE[9055] logger.c: a2billing.php,2: [extracharge_fee] => Array [Jan 23 12:31:40] VERBOSE[9055] logger.c: a2billing.php,2: ( [Jan 23 12:31:40] VERBOSE[9055] logger.c: a2billing.php,2: [0] => 0 [Jan 23 12:31:40] VERBOSE[9055] logger.c: a2billing.php,2: [1] => 0 [Jan 23 12:31:40] VERBOSE[9055] logger.c: a2billing.php,2: ) [Jan 23 12:31:40] VERBOSE[9055] logger.c: a2billing.php,2: [Jan 23 12:31:40] VERBOSE[9055] logger.c: a2billing.php,2: [extracharge_buyfee] => Array [Jan 23 12:31:40] VERBOSE[9055] logger.c: a2billing.php,2: ( [Jan 23 12:31:41] VERBOSE[9055] logger.c: a2billing.php,2: [0] => 0 [Jan 23 12:31:41] VERBOSE[9055] logger.c: a2billing.php,2: [1] => 0 [Jan 23 12:31:41] VERBOSE[9055] logger.c: a2billing.php,2: ) [Jan 23 12:31:41] VERBOSE[9055] logger.c: a2billing.php,2: [Jan 23 12:31:41] VERBOSE[9055] logger.c: a2billing.php,2: [maxtime_tounlimited_calls] => 5400 [Jan 23 12:31:41] VERBOSE[9055] logger.c: a2billing.php,2: [maxtime_tofree_calls] => 5400 [Jan 23 12:31:41] VERBOSE[9055] logger.c: a2billing.php,2: [callplan_deck_minute_threshold] => [Jan 23 12:31:41] VERBOSE[9055] logger.c: a2billing.php,2: [disable_announcement_seconds] => 0 [Jan 23 12:31:41] VERBOSE[9055] logger.c: a2billing.php,2: [verbosity_level] => 4 [Jan 23 12:31:41] VERBOSE[9055] logger.c: a2billing.php,2: [logging_level] => 4 [Jan 23 12:31:41] VERBOSE[9055] logger.c: a2billing.php,2: [dial_balance_reservation] => 0.25 [Jan 23 12:31:41] VERBOSE[9055] logger.c: a2billing.php,2: [callerid_update] => 0 [Jan 23 12:31:41] VERBOSE[9055] logger.c: a2billing.php,2: [cid_auto_create_card] => 0 [Jan 23 12:31:41] VERBOSE[9055] logger.c: a2billing.php,2: [cid_auto_create_card_len] => 10 [Jan 23 12:31:41] VERBOSE[9055] logger.c: a2billing.php,2: [cid_auto_create_card_typepaid] => PREPAID [Jan 23 12:31:41] VERBOSE[9055] logger.c: a2billing.php,2: [cid_auto_create_card_credit] => 0 [Jan 23 12:31:41] VERBOSE[9055] logger.c: a2billing.php,2: [cid_auto_create_card_credit_limit] => 0 [Jan 23 12:31:41] VERBOSE[9055] logger.c: a2billing.php,2: [cid_auto_create_card_tariffgroup] => 1 [Jan 23 12:31:41] VERBOSE[9055] logger.c: a2billing.php,2: [busy_timeout] => 1 [Jan 23 12:31:41] VERBOSE[9055] logger.c: a2billing.php,2: [callback_reduce_balance] => 1 [Jan 23 12:31:41] VERBOSE[9055] logger.c: a2billing.php,2: [ivr_enable_locking_option] => 0 [Jan 23 12:31:41] VERBOSE[9055] logger.c: a2billing.php,2: [ivr_enable_account_information] => 0 [Jan 23 12:31:41] VERBOSE[9055] logger.c: a2billing.php,2: [ivr_enable_ivr_speeddial] => 0 [Jan 23 12:31:41] VERBOSE[9055] logger.c: a2billing.php,2: [logger_enable] => 1 [Jan 23 12:31:41] VERBOSE[9055] logger.c: a2billing.php,2: [log_file] => /var/log/a2billing/a2billing.log [Jan 23 12:31:41] VERBOSE[9055] logger.c: a2billing.php,2: [dialcommand_param_call_2did ] => |30|HL(3600000:61000:30000) [Jan 23 12:31:41] VERBOSE[9055] logger.c: a2billing.php,2: [currency_association_internal] => Array [Jan 23 12:31:41] VERBOSE[9055] logger.c: a2billing.php,2: ( [Jan 23 12:31:41] VERBOSE[9055] logger.c: a2billing.php,2: [eur] => euros [Jan 23 12:31:41] VERBOSE[9055] logger.c: a2billing.php,2: [usd] => dollars [Jan 23 12:31:42] VERBOSE[9055] logger.c: a2billing.php,2: [mxn] => pesos [Jan 23 12:31:42] VERBOSE[9055] logger.c: a2billing.php,2: [all] => credit [Jan 23 12:31:42] VERBOSE[9055] logger.c: a2billing.php,2: ) [Jan 23 12:31:42] VERBOSE[9055] logger.c: a2billing.php,2: [Jan 23 12:31:42] VERBOSE[9055] logger.c: a2billing.php,2: [file_conf_enter_menulang] => prepaid-menulang [Jan 23 12:31:42] VERBOSE[9055] logger.c: a2billing.php,2: [ivr_voucher_prefixe] => 8 [Jan 23 12:31:42] VERBOSE[9055] logger.c: a2billing.php,2: [cheat_on_announcement_time] => 0 [Jan 23 12:31:42] VERBOSE[9055] logger.c: a2billing.php,2: ) [Jan 23 12:31:42] VERBOSE[9055] logger.c: a2billing.php,2: [Jan 23 12:31:42] VERBOSE[9055] logger.c: a2billing.php,2: file:a2billing.php - line:106 - uniqueid: - IDCONFIG : 2 [Jan 23 12:31:42] VERBOSE[9055] logger.c: a2billing.php,2: file:a2billing.php - line:107 - uniqueid: - MODE : standard [Jan 23 12:31:42] VERBOSE[9055] logger.c: a2billing.php,2: file:a2billing.php - line:124 - uniqueid: - AGI Request: [Jan 23 12:31:42] VERBOSE[9055] logger.c: a2billing.php,2: Array [Jan 23 12:31:42] VERBOSE[9055] logger.c: a2billing.php,2: ( [Jan 23 12:31:42] VERBOSE[9055] logger.c: a2billing.php,2: [agi_request] => a2billing.php [Jan 23 12:31:42] VERBOSE[9055] logger.c: a2billing.php,2: [agi_channel] => SIP/5018-000003a7 [Jan 23 12:31:42] VERBOSE[9055] logger.c: a2billing.php,2: [agi_language] => en [Jan 23 12:31:42] VERBOSE[9055] logger.c: a2billing.php,2: [agi_type] => SIP [Jan 23 12:31:42] VERBOSE[9055] logger.c: a2billing.php,2: [agi_uniqueid] => 1327321897.3398 [Jan 23 12:31:42] VERBOSE[9055] logger.c: a2billing.php,2: [agi_version] => 1.6.0.26-FONCORE-r78 [Jan 23 12:31:42] VERBOSE[9055] logger.c: a2billing.php,2: [agi_callerid] => 5018 [Jan 23 12:31:42] VERBOSE[9055] logger.c: a2billing.php,2: [agi_calleridname] => device [Jan 23 12:31:42] VERBOSE[9055] logger.c: a2billing.php,2: [agi_callingpres] => 0 [Jan 23 12:31:42] VERBOSE[9055] logger.c: a2billing.php,2: [agi_callingani2] => 0 [Jan 23 12:31:42] VERBOSE[9055] logger.c: a2billing.php,2: [agi_callington] => 0 [Jan 23 12:31:42] VERBOSE[9055] logger.c: a2billing.php,2: [agi_callingtns] => 0 [Jan 23 12:31:42] VERBOSE[9055] logger.c: a2billing.php,2: [agi_dnid] => 917987123 [Jan 23 12:31:42] VERBOSE[9055] logger.c: a2billing.php,2: [agi_rdnis] => unknown [Jan 23 12:31:42] VERBOSE[9055] logger.c: a2billing.php,2: [agi_context] => a2billing2 [Jan 23 12:31:43] VERBOSE[9055] logger.c: a2billing.php,2: [agi_extension] => 917987123 [Jan 23 12:31:43] VERBOSE[9055] logger.c: a2billing.php,2: [agi_priority] => 2 [Jan 23 12:31:43] VERBOSE[9055] logger.c: a2billing.php,2: [agi_enhanced] => 0.0 [Jan 23 12:31:43] VERBOSE[9055] logger.c: a2billing.php,2: [agi_accountcode] => 6877498212 [Jan 23 12:31:43] VERBOSE[9055] logger.c: a2billing.php,2: [agi_threadid] => -1226949744 [Jan 23 12:31:43] VERBOSE[9055] logger.c: a2billing.php,2: [agi_arg_1] => 2 [Jan 23 12:31:43] VERBOSE[9055] logger.c: a2billing.php,2: ) [Jan 23 12:31:43] VERBOSE[9055] logger.c: a2billing.php,2: [Jan 23 12:31:43] VERBOSE[9055] logger.c: a2billing.php,2: file:a2billing.php - line:126 - uniqueid: - [INFO : A2Billing - Version 1.9.4 (Cuprum)] [Jan 23 12:31:43] VERBOSE[9055] logger.c: a2billing.php,2: file:Class.A2Billing.php - line:718 - uniqueid:1327321897.3398 - get_agi_request_parameter = 5018 ; SIP/5018-000003a7 ; 1327321897.3398 ; 6877498212 ; 917987123 [Jan 23 12:31:43] VERBOSE[9055] logger.c: a2billing.php,2: file:a2billing.php - line:166 - uniqueid:1327321897.3398 - [NO ANSWER CALL] [Jan 23 12:31:43] WARNING[9055] file.c: File menu_en does not exist in any format [Jan 23 12:31:43] WARNING[9055] file.c: Unable to open menu_en (format 0x4 (ulaw)): No such file or directory [Jan 23 12:31:43] WARNING[9055] file.c: File num_en_1 does not exist in any format [Jan 23 12:31:43] WARNING[9055] file.c: Unable to open num_en_1 (format 0x4 (ulaw)): No such file or directory [Jan 23 12:31:43] WARNING[9055] file.c: File menu_fr does not exist in any format [Jan 23 12:31:43] WARNING[9055] file.c: Unable to open menu_fr (format 0x4 (ulaw)): No such file or directory [Jan 23 12:31:43] WARNING[9055] file.c: File num_fr_2 does not exist in any format [Jan 23 12:31:43] WARNING[9055] file.c: Unable to open num_fr_2 (format 0x4 (ulaw)): No such file or directory [Jan 23 12:31:43] WARNING[9055] file.c: File menu_es does not exist in any format [Jan 23 12:31:43] WARNING[9055] file.c: Unable to open menu_es (format 0x4 (ulaw)): No such file or directory [Jan 23 12:31:43] WARNING[9055] file.c: File num_es_3 does not exist in any format [Jan 23 12:31:43] WARNING[9055] file.c: Unable to open num_es_3 (format 0x4 (ulaw)): No such file or directory [Jan 23 12:31:43] VERBOSE[9055] logger.c: a2billing.php,2: file:Class.A2Billing.php - line:656 - uniqueid:1327321897.3398 - RES Menu Language DTMF : -1 [Jan 23 12:31:43] VERBOSE[9055] logger.c: a2billing.php,2: file:Class.A2Billing.php - line:673 - uniqueid:1327321897.3398 - CURRENT LANGUAGE : en [Jan 23 12:31:43] VERBOSE[9055] logger.c: a2billing.php,2: file:Class.A2Billing.php - line:682 - uniqueid:1327321897.3398 - [SET CHANNEL(language) en] [Jan 23 12:31:43] VERBOSE[9055] logger.c: a2billing.php,2: file:Class.A2Billing.php - line:2496 - uniqueid:1327321897.3398 - [CID_ENABLE - CID_CONTROL - CID:5018] [Jan 23 12:31:43] VERBOSE[9055] logger.c: a2billing.php,2: file:Class.A2Billing.php - line:2511 - uniqueid:1327321897.3398 - Array [Jan 23 12:31:43] VERBOSE[9055] logger.c: a2billing.php,2: ( [Jan 23 12:31:43] VERBOSE[9055] logger.c: a2billing.php,2: [0] => Array [Jan 23 12:31:43] VERBOSE[9055] logger.c: a2billing.php,2: ( [Jan 23 12:31:43] VERBOSE[9055] logger.c: a2billing.php,2: [0] => 5018 [Jan 23 12:31:43] VERBOSE[9055] logger.c: a2billing.php,2: [cid] => 5018 [Jan 23 12:31:43] VERBOSE[9055] logger.c: a2billing.php,2: [1] => 1 [Jan 23 12:31:43] VERBOSE[9055] logger.c: a2billing.php,2: [id_cc_card] => 1 [Jan 23 12:31:43] VERBOSE[9055] logger.c: a2billing.php,2: [2] => t [Jan 23 12:31:43] VERBOSE[9055] logger.c: a2billing.php,2: [activated] => f [Jan 23 12:31:44] VERBOSE[9055] logger.c: a2billing.php,2: [3] => 4971.18000 [Jan 23 12:31:44] VERBOSE[9055] logger.c: a2billing.php,2: [credit] => 4971.18000 [Jan 23 12:31:44] VERBOSE[9055] logger.c: a2billing.php,2: [4] => 1 [Jan 23 12:31:44] VERBOSE[9055] logger.c: a2billing.php,2: [tariff] => 1 [Jan 23 12:31:44] VERBOSE[9055] logger.c: a2billing.php,2: [5] => f [Jan 23 12:31:44] VERBOSE[9055] logger.c: a2billing.php,2: [6] => 1 [Jan 23 12:31:44] VERBOSE[9055] logger.c: a2billing.php,2: [inuse] => 1 [Jan 23 12:31:44] VERBOSE[9055] logger.c: a2billing.php,2: [7] => 1 [Jan 23 12:31:44] VERBOSE[9055] logger.c: a2billing.php,2: [simultaccess] => 1 [Jan 23 12:31:44] VERBOSE[9055] logger.c: a2billing.php,2: [8] => 0 [Jan 23 12:31:44] VERBOSE[9055] logger.c: a2billing.php,2: [typepaid] => 0 [Jan 23 12:31:44] VERBOSE[9055] logger.c: a2billing.php,2: [9] => [Jan 23 12:31:44] VERBOSE[9055] logger.c: a2billing.php,2: [creditlimit] => [Jan 23 12:31:44] VERBOSE[9055] logger.c: a2billing.php,2: [10] => en [Jan 23 12:31:44] VERBOSE[9055] logger.c: a2billing.php,2: [language] => en [Jan 23 12:31:44] VERBOSE[9055] logger.c: a2billing.php,2: [11] => 6877498212 [Jan 23 12:31:44] VERBOSE[9055] logger.c: a2billing.php,2: [username] => 6877498212 [Jan 23 12:31:44] VERBOSE[9055] logger.c: a2billing.php,2: [12] => 0 [Jan 23 12:31:44] VERBOSE[9055] logger.c: a2billing.php,2: [removeinterprefix] => 0 [Jan 23 12:31:44] VERBOSE[9055] logger.c: a2billing.php,2: [13] => 0218161050 [Jan 23 12:31:44] VERBOSE[9055] logger.c: a2billing.php,2: [redial] => 0218161050 [Jan 23 12:31:44] VERBOSE[9055] logger.c: a2billing.php,2: [14] => 0 [Jan 23 12:31:44] VERBOSE[9055] logger.c: a2billing.php,2: [enableexpire] => 0 [Jan 23 12:31:44] VERBOSE[9055] logger.c: a2billing.php,2: [15] => 1639933053 [Jan 23 12:31:44] VERBOSE[9055] logger.c: a2billing.php,2: [UNIX_TIMESTAMP(expirationdate)] => 1639933053 [Jan 23 12:31:44] VERBOSE[9055] logger.c: a2billing.php,2: [16] => 0 [Jan 23 12:31:44] VERBOSE[9055] logger.c: a2billing.php,2: [expiredays] => 0 [Jan 23 12:31:44] VERBOSE[9055] logger.c: a2billing.php,2: [17] => 78 [Jan 23 12:31:44] VERBOSE[9055] logger.c: a2billing.php,2: [nbused] => 78 [Jan 23 12:31:44] VERBOSE[9055] logger.c: a2billing.php,2: [18] => 1324916795 [Jan 23 12:31:44] VERBOSE[9055] logger.c: a2billing.php,2: [UNIX_TIMESTAMP(firstusedate)] => 1324916795 [Jan 23 12:31:44] VERBOSE[9055] logger.c: a2billing.php,2: [19] => 1324310332 [Jan 23 12:31:44] VERBOSE[9055] logger.c: a2billing.php,2: [UNIX_TIMESTAMP(cc_card.creationdate)] => 1324310332 [Jan 23 12:31:44] VERBOSE[9055] logger.c: a2billing.php,2: [20] => EUR [Jan 23 12:31:44] VERBOSE[9055] logger.c: a2billing.php,2: [currency] => EUR [Jan 23 12:31:44] VERBOSE[9055] logger.c: a2billing.php,2: [21] => Linkcom [Jan 23 12:31:45] VERBOSE[9055] logger.c: a2billing.php,2: [lastname] => Linkcom [Jan 23 12:31:45] VERBOSE[9055] logger.c: a2billing.php,2: [22] => Linkcom [Jan 23 12:31:45] VERBOSE[9055] logger.c: a2billing.php,2: [firstname] => Linkcom [Jan 23 12:31:45] VERBOSE[9055] logger.c: a2billing.php,2: [23] => [Jan 23 12:31:45] VERBOSE[9055] logger.c: a2billing.php,2: [email] => [Jan 23 12:31:45] VERBOSE[9055] logger.c: a2billing.php,2: [24] => 0021321250 [Jan 23 12:31:45] VERBOSE[9055] logger.c: a2billing.php,2: [uipass] => 0021321250 [Jan 23 12:31:45] VERBOSE[9055] logger.c: a2billing.php,2: [25] => -1 [Jan 23 12:31:45] VERBOSE[9055] logger.c: a2billing.php,2: [id_campaign] => -1 [Jan 23 12:31:45] VERBOSE[9055] logger.c: a2billing.php,2: [26] => 1 [Jan 23 12:31:45] VERBOSE[9055] logger.c: a2billing.php,2: [id] => 1 [Jan 23 12:31:45] VERBOSE[9055] logger.c: a2billing.php,2: [27] => 669341845898450 [Jan 23 12:31:45] VERBOSE[9055] logger.c: a2billing.php,2: [useralias] => 669341845898450 [Jan 23 12:31:45] VERBOSE[9055] logger.c: a2billing.php,2: [28] => 1 [Jan 23 12:31:45] VERBOSE[9055] logger.c: a2billing.php,2: [status] => 1 [Jan 23 12:31:45] VERBOSE[9055] logger.c: a2billing.php,2: [29] => 0 [Jan 23 12:31:45] VERBOSE[9055] logger.c: a2billing.php,2: [voicemail_permitted] => 0 [Jan 23 12:31:45] VERBOSE[9055] logger.c: a2billing.php,2: [30] => 0 [Jan 23 12:31:45] VERBOSE[9055] logger.c: a2billing.php,2: [voicemail_activated] => 0 [Jan 23 12:31:45] VERBOSE[9055] logger.c: a2billing.php,2: [31] => 0 [Jan 23 12:31:45] VERBOSE[9055] logger.c: a2billing.php,2: [restriction] => 0 [Jan 23 12:31:45] VERBOSE[9055] logger.c: a2billing.php,2: [32] => 351 [Jan 23 12:31:45] VERBOSE[9055] logger.c: a2billing.php,2: [countryprefix] => 351 [Jan 23 12:31:45] VERBOSE[9055] logger.c: a2billing.php,2: ) [Jan 23 12:31:45] VERBOSE[9055] logger.c: a2billing.php,2: [Jan 23 12:31:45] VERBOSE[9055] logger.c: a2billing.php,2: ) [Jan 23 12:31:45] VERBOSE[9055] logger.c: a2billing.php,2: [Jan 23 12:31:45] VERBOSE[9055] logger.c: a2billing.php,2: file:Class.A2Billing.php - line:2721 - uniqueid:1327321897.3398 - - Account code ::> 6877498212 [Jan 23 12:31:45] VERBOSE[9055] logger.c: a2billing.php,2: file:Class.A2Billing.php - line:750 - uniqueid:1327321897.3398 - [CARD STATUS UPDATE] [Jan 23 12:31:45] VERBOSE[9055] logger.c: a2billing.php,2: file:Class.A2Billing.php - line:759 - uniqueid:1327321897.3398 - [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse=inuse+1, credit=credit-0.25 WHERE username='6877498212'] [Jan 23 12:31:45] VERBOSE[9055] logger.c: a2billing.php,2: file:a2billing.php - line:178 - uniqueid:1327321897.3398 - [TRY : callingcard_ivr_authenticate] [Jan 23 12:31:46] VERBOSE[9055] logger.c: a2billing.php,2: file:Class.A2Billing.php - line:2392 - uniqueid:1327321897.3398 - [AUTO SetCallerID] [Jan 23 12:31:46] VERBOSE[9055] logger.c: a2billing.php,2: file:Class.A2Billing.php - line:2398 - uniqueid:1327321897.3398 - [REQUESTED SetCallerID : 5018] [Jan 23 12:31:46] VERBOSE[9055] logger.c: a2billing.php,2: file:Class.A2Billing.php - line:2410 - uniqueid:1327321897.3398 - [EXEC SetCallerID : 5018] [Jan 23 12:31:46] VERBOSE[9055] logger.c: a2billing.php,2: file:a2billing.php - line:193 - uniqueid:1327321897.3398 - [CHANNEL STATUS : 6 = Line is up] [Jan 23 12:31:46] VERBOSE[9055] logger.c: a2billing.php,2: [CREDIT : 4971.18000][CREDIT MIN_CREDIT_2CALL : 0] [Jan 23 12:31:46] VERBOSE[9055] logger.c: a2billing.php,2: file:a2billing.php - line:396 - uniqueid:1327321897.3398 - TARIFF ID -> 1 [Jan 23 12:31:46] VERBOSE[9055] logger.c: a2billing.php,2: file:Class.A2Billing.php - line:808 - uniqueid:1327321897.3398 - use_dnid:1 && (!in_array:) && len_dnid:(9 || len_exten:9 ) && (try_num:0) [Jan 23 12:31:46] VERBOSE[9055] logger.c: a2billing.php,2: file:Class.A2Billing.php - line:817 - uniqueid:1327321897.3398 - [USE_DNID DESTINATION ::> 917987123] [Jan 23 12:31:46] VERBOSE[9055] logger.c: a2billing.php,2: file:Class.A2Billing.php - line:881 - uniqueid:1327321897.3398 - [CALL 2 DID] [Jan 23 12:31:46] VERBOSE[9055] logger.c: a2billing.php,2: file:Class.A2Billing.php - line:890 - uniqueid:1327321897.3398 - SELECT cc_did.id, iduser FROM cc_did, cc_card WHERE cc_card.status=1 and cc_card.id=iduser and cc_did.activated=1 and did='917987123' AND cc_did.startingdate<= CURRENT_TIMESTAMP AND (cc_did.expirationdate > CURRENT_TIMESTAMP OR cc_did.expirationdate IS NULL OR cc_did.expirationdate = '0000-00-00 00:00:00') [Jan 23 12:31:46] VERBOSE[9055] logger.c: a2billing.php,2: file:Class.A2Billing.php - line:896 - uniqueid:1327321897.3398 - DESTINATION ::> 917987123 [Jan 23 12:31:46] VERBOSE[9055] logger.c: a2billing.php,2: file:Class.A2Billing.php - line:903 - uniqueid:1327321897.3398 - RULES APPLY ON DESTINATION ::> 917987123 [Jan 23 12:31:46] VERBOSE[9055] logger.c: a2billing.php,2: file:Class.A2Billing.php - line:3551 - uniqueid:1327321897.3398 - [SAVING DESTINATION FOR REDIAL: SQL: UPDATE cc_card SET redial = '917987123' WHERE username='6877498212']:[result: 1] [Jan 23 12:31:46] VERBOSE[9055] logger.c: a2billing.php,2: file:Class.RateEngine.php - line:98 - uniqueid:1327321897.3398 - [CC_asterisk_rate-engine: (1, 917987123)] [Jan 23 12:31:46] VERBOSE[9055] logger.c: a2billing.php,2: file:Class.RateEngine.php - line:120 - uniqueid:1327321897.3398 - [CC_asterisk_rate-engine - CALLERID : 5018] [Jan 23 12:31:46] VERBOSE[9055] logger.c: a2billing.php,2: file:Class.RateEngine.php - line:182 - uniqueid:1327321897.3398 - [rate-engine: Count Total result 1] [Jan 23 12:31:47] VERBOSE[9055] logger.c: a2billing.php,2: file:Class.RateEngine.php - line:270 - uniqueid:1327321897.3398 - [CC_asterisk_rate-engine: Count Total result 1] [Jan 23 12:31:47] VERBOSE[9055] logger.c: a2billing.php,2: file:Class.RateEngine.php - line:271 - uniqueid:1327321897.3398 - [CC_asterisk_rate-engine: number_trunk 1] [Jan 23 12:31:47] VERBOSE[9055] logger.c: a2billing.php,2: file:Class.A2Billing.php - line:1019 - uniqueid:1327321897.3398 - OK - RESFINDRATE::> 1 [Jan 23 12:31:47] VERBOSE[9055] logger.c: a2billing.php,2: file:Class.RateEngine.php - line:285 - uniqueid:1327321897.3398 - [CC_RATE_ENGINE_ALL_CALCULTIMEOUT (4971.18000)] [Jan 23 12:31:47] VERBOSE[9055] logger.c: a2billing.php,2: file:Class.RateEngine.php - line:291 - uniqueid:1327321897.3398 - [CC_RATE_ENGINE_ALL_CALCULTIMEOUT: k=0 - res_calcultimeout:2130480] [Jan 23 12:31:47] VERBOSE[9055] logger.c: a2billing.php,2: file:Class.A2Billing.php - line:1031 - uniqueid:1327321897.3398 - RES_ALL_CALCULTIMEOUT ::> 1 [Jan 23 12:31:47] VERBOSE[9055] logger.c: a2billing.php,2: file:Class.A2Billing.php - line:1854 - uniqueid:1327321897.3398 - TIMEOUT::> 2130480 : minutes=35508 - seconds=0 [Jan 23 12:31:47] VERBOSE[9055] logger.c: a2billing.php,2: file:a2billing.php - line:572 - uniqueid:1327321897.3398 - ANSWER fct callingcard_ivr authorize:> 1 [Jan 23 12:31:47] VERBOSE[9055] logger.c: a2billing.php,2: file:Class.RateEngine.php - line:1245 - uniqueid:1327321897.3398 - app_callingcard: Dialing 'local/917987123@from-internal,90,T' with timeout of '2130480'. [Jan 23 12:31:47] VERBOSE[9055] logger.c: a2billing.php,2: [Jan 23 12:31:47] VERBOSE[9055] logger.c: a2billing.php,2: file:Class.RateEngine.php - line:1265 - uniqueid:1327321897.3398 - app_callingcard: CIDGROUPID='-1' OUTBOUND CID SELECTED IS '0'. [Jan 23 12:31:47] VERBOSE[9055] logger.c: a2billing.php,2: file:Class.RateEngine.php - line:1157 - uniqueid:1327321897.3398 - [TRUNK STATUS UPDATE : UPDATE cc_trunk SET inuse=inuse+1 WHERE id_trunk='2'] [Jan 23 12:31:47] VERBOSE[9055] logger.c: -- AGI Script Executing Application: (DIAL) Options: (local/917987123@from-internal,90,T) [Jan 23 12:31:47] VERBOSE[9055] logger.c: -- Called 917987123@from-internal [Jan 23 12:31:47] VERBOSE[9055] logger.c: -- Local/917987123@from-internal-95d6;1 is proceeding passing it to SIP/5018-000003a7 [Jan 23 12:31:52] VERBOSE[9055] logger.c: -- Local/917987123@from-internal-95d6;1 is ringing [Jan 23 12:31:55] VERBOSE[9055] logger.c: -- Local/917987123@from-internal-95d6;1 answered SIP/5018-000003a7 [Jan 23 12:32:01] VERBOSE[9055] logger.c: -- Hungup 'DAHDI/1-1' [Jan 23 12:32:01] NOTICE[9055] res_agi.c: FONALITY: Hangup detected, AGI terminates. [Jan 23 12:32:01] VERBOSE[9055] logger.c: == Spawn extension (a2billing2, 917987123, 2) exited non-zero on 'SIP/5018-000003a7'
extensions.conf
exten => _X.,1,Answer exten => _X.,n,DeadAGI(a2billing.php,2) exten => _X.,n,Hangup()
i have tested with
exten => _X.,1,Answer exten => _X.,n,Wait(1) exten => _X.,n,AGI(a2billing.php) exten => _X.,n,Hangup()
Thanks in advance. Gonçalo Carvalho
|