Open dbbrito opened 9 years ago
Hi,
Asterisk 13 work with A2billing?
Asterisk 13 Originate function used through AMI has changed and it is behaving differently.
Asterisk 11 needs variables : 'key1=val1|key2=val2'
Asterisk 13 needs each in new lines: key1=val1 key2=val2
under callback python code Look for: if variables: cdict['Variable'] = '|'.join(['='.join((str(key), str(value))) for key, value in variables.items()]) if variables: cdict['Variable'] = ['='.join((str(key), str(value))) for key, value in variables.items()]
and change to: if variables: cdict['Variables'] = variables
Thank you for ULTRATONE help! Could you please tell us what are the files to change, because I searched several files and did not find where to change !? thank you
me too,
Need tutorial to use asterisk 13 with A2B
On Sun, May 31, 2015 at 5:31 PM, dbbrito notifications@github.com wrote:
Thank you for ULTRATONE help! Could you please tell us what are the files to change, because I searched several files and did not find where to change !? thank you
— Reply to this email directly or view it on GitHub https://github.com/Star2Billing/a2billing/issues/91#issuecomment-107162270 .
We use Asterisk 11 with A2Billing v2.1.4 and have similar issue where only one account is billed even though on CDR page is showed both are billed, but in fact all money are withdrew from the account initiated the call. And that is incorrect billing info.
Installed a2billing 2.0.16 with asterisk 13 and everything works, but when I tested the callback I saw that balance reduce only one leg. Thanks![callbacka2b](https://cloud.githubusercontent.com/assets/9949166/5186335/c49cb85c-74ac-11e4-8fb1-72fe0e64b988.jpg)
[Nov 25 13:59:32] VERBOSE[1811] netsock2.c: Using SIP RTP CoS mark 5 [Nov 25 13:59:32] VERBOSE[1925] dial.c: Called callvoipsNT2P1/99901551184146661 [Nov 25 13:59:36] VERBOSE[1925] dial.c: SIP/callvoipsNT2P1-00000002 is making progress [Nov 25 13:59:41] VERBOSE[1925] dial.c: SIP/callvoipsNT2P1-00000002 answered [Nov 25 13:59:41] VERBOSE[1925][C-00000001] pbx.c: Executing [1138181673@a2billing-callback:1] AGI("SIP/callvoipsNT2P1-00000002", "a2billing.php,6,callback") in new stack [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.A2Billing.php - line:590 - uniqueid: - A2Billing AGI internal configuration: [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.A2Billing.php - line:591 - uniqueid: - Array [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: ( [Nov 25 13:59:41] VERBOSE[1925][C-00000001] resagi.c: a2billing.php,6,callback: [callerid] => 0 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [dialcommand_param_call_2did] => |70|HimL(3600000:61000:30000) [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [description] => agi-config [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [asterisk_version] => 1_11 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [answer_call] => 0 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [play_audio] => 1 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [say_goodbye] => 0 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [play_menulanguage] => 0 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [force_language] => br [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [intro_prompt] => [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [min_credit_2call] => [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [min_duration_2bill] => 0 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [notenoughcredit_cardnumber] => 0 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [notenoughcredit_assign_newcardnumber_cid] => 0 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [use_dnid] => 1 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [no_auth_dnid] => Array [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: ( [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [0] => 2400 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [1] => 2300 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: ) [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [number_try] => 1 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [force_callplan_id] => [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [say_balance_after_auth] => 0 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [say_balance_after_call] => 0 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [say_rateinitial] => 0 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [say_timetocall] => 0 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [auto_setcallerid] => 0 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [force_callerid] => YES [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [cid_sanitize] => NO [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [cid_enable] => 1 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [cid_askpincode_ifnot_callerid] => 0 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [failover_lc_prefix] => 0 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [cid_auto_assign_card_to_cid] => 1 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [callerid_authentication_over_cardnumber] => 0 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [sip_iax_friends] => 0 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [sip_iax_pstn_direct_call_prefix] => 555 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [sip_iax_pstn_direct_call] => 0 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [ivr_voucher] => 0 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [ivr_voucher_prefix] => 8 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [jump_voucher_if_min_credit] => 0 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [dialcommand_param] => |37|HRrL(1800000) [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [dialcommand_param_sipiax_friend] => |35|HL(3600000:61000:30000) [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [switchdialcommand] => 0 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [failover_recursive_limit] => 4 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [maxtime_tocall_negatif_free_route] => 5400 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [send_reminder] => 0 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [record_call] => 0 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [monitor_formatfile] => gsm [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [agi_force_currency] => [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [currency_association] => Array [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: ( [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [0] => usd:dollars [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [1] => mxn:pesos [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [2] => eur:euros [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [3] => all:credit [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: ) [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [local_dialing_addcountryprefix] => 0 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [max_call_call_2_did] => 3600 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [file_conf_enter_destination] => [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [conf_order_menulang] => en:fr:es [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [callback_bill_1stleg_ifcall_notconnected] => 1 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [international_prefixes] => Array [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: ( [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [0] => 011 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [1] => 00 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [2] => 09 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [3] => 1 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: ) [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [extracharge_did] => Array [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: ( [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [0] => 1800 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [1] => 1900 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: ) [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [extracharge_fee] => Array [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: ( [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [0] => 0 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [1] => 0 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: ) [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [extracharge_buyfee] => Array [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: ( [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [0] => 0 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [1] => 0 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: ) [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [maxtime_tounlimited_calls] => 5400 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [maxtime_tofree_calls] => 5400 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [callplan_deck_minute_threshold] => [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [disable_announcement_seconds] => 0 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [verbosity_level] => 4 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [logging_level] => 4 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [dial_balance_reservation] => 0.25 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [logger_enable] => 1 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [log_file] => /var/log/a2billing/a2billing.log [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [cid_auto_create_card_len] => 10 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [cid_auto_create_card] => 0 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [dialcommand_param_call_2did ] => |30|HL(3600000:61000:30000) [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [currency_association_internal] => Array [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: ( [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [usd] => dollars [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [mxn] => pesos [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [eur] => euros [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [all] => credit [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: ) [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [file_conf_enter_menulang] => prepaid-menulang [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [ivr_voucher_prefixe] => 8 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [cheat_on_announcement_time] => 0 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [busy_timeout] => 1 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [lcr_mode] => 0 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: ) [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:a2billing.php - line:117 - uniqueid: - IDCONFIG : 6 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:a2billing.php - line:118 - uniqueid: - MODE : callback [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:a2billing.php - line:130 - uniqueid: - AGI Request: [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: Array [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: ( [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [agi_request] => a2billing.php [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [agi_channel] => SIP/callvoipsNT2P1-00000002 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [agi_language] => br [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [agi_type] => SIP [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [agi_uniqueid] => 1416931172.3 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [agi_version] => 13.0.1 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [agi_callerid] => 1140638059 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [agi_calleridname] => unknown [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [agi_callingpres] => 0 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [agi_callingani2] => 0 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [agi_callington] => 0 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [agi_callingtns] => 0 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [agi_dnid] => unknown [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [agi_rdnis] => unknown [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [agi_context] => a2billing-callback [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [agi_extension] => 1138181673 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [agi_priority] => 1 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [agi_enhanced] => 0.0 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [agi_accountcode] => 98769123457 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [agi_threadid] => 140396534720256 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [agi_arg_1] => 6 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [agi_arg_2] => callback [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: ) [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:a2billing.php - line:131 - uniqueid: - [INFO : A2Billing - v2.0.16] [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.A2Billing.php - line:748 - uniqueid:1416931172.3 - get_agi_request_parameter = 1140638059 ; SIP/callvoipsNT2P1-00000002 ; 1416931172.3 ; 98769123457 ; 1138181673 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:a2billing.php - line:1072 - uniqueid:1416931172.3 - [CALLBACK]:[MODE : CALLBACK] [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:a2billing.php - line:1085 - uniqueid:1416931172.3 - [CALLBACK]:[NO ANSWER CALL] [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.A2Billing.php - line:662 - uniqueid:1416931172.3 - FORCE LANGUAGE : br [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.A2Billing.php - line:672 - uniqueid:1416931172.3 - [SET CHANNEL(language) br] [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:a2billing.php - line:1128 - uniqueid:1416931172.3 - [CALLBACK]:[GET VARIABLE : CALLED=1184146661 | CALLING=1138181673 | MODE= | TARIFF= | CBID=26129-uqcynx6 | LEG=98769123457 | CALLERID=1140638059] [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:a2billing.php - line:1132 - uniqueid:1416931172.3 - [CALLBACK : UPDATE CALLBACK AGI_RESULT : QUERY=UPDATE cc_callback_spool SET agi_result='AGI PROCESSING' WHERE uniqueid='26129-uqcynx6'] [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:a2billing.php - line:1136 - uniqueid:1416931172.3 - [CALLBACK]:[TRY : callingcard_ivr_authenticate] [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.A2Billing.php - line:2869 - uniqueid:1416931172.3 - - Account code ::> 98769123457 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.A2Billing.php - line:2886 - uniqueid:1416931172.3 - - Retrieve account info SQL ::> SELECT credit, tariff, activated, inuse, simultaccess, typepaid, creditlimit, language, removeinterprefix, redial, enableexpire, UNIX_TIMESTAMP(expirationdate), expiredays, nbused, UNIX_TIMESTAMP(firstusedate), UNIX_TIMESTAMP(cc_card.creationdate), cc_card.currency, cc_card.lastname, cc_card.firstname, cc_card.email, cc_card.uipass, cc_card.id_campaign, cc_card.id, useralias, status, voicemail_permitted, voicemail_activated, cc_card.restriction, cc_country.countryprefix FROM cc_card LEFT JOIN cc_tariffgroup ON tariff = cc_tariffgroup.id LEFT JOIN cc_country ON cc_card.country = cc_country.countrycode WHERE username = '98769123457' [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.A2Billing.php - line:2959 - uniqueid:1416931172.3 - [credit=45.01381 :: tariff=1 :: status=1 :: isused=0 :: simultaccess=1 :: typepaid=0 :: creditlimit= :: language=br] [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.A2Billing.php - line:780 - uniqueid:1416931172.3 - [CARD STATUS UPDATE] [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.A2Billing.php - line:789 - uniqueid:1416931172.3 - [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse = inuse + 1, credit = credit - 0.25 WHERE username = '98769123457']
[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.A2Billing.php - line:2528 - uniqueid:1416931172.3 - [AUTO SetCallerID] [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:a2billing.php - line:1161 - uniqueid:1416931172.3 - [CALLBACK]:[CHANNEL STATUS : 6 = Line is up][status_channel=4]:[ORIG_CREDIT : 45.01381 - CUR_CREDIT - : 22.506905 - CREDIT MIN_CREDIT_2CALL : ] [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.A2Billing.php - line:839 - uniqueid:1416931172.3 - use_dnid:1 && (!in_array:) && len_dnid:(10 || len_exten:10 ) && (try_num:0) [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.A2Billing.php - line:848 - uniqueid:1416931172.3 - [USE_DNID DESTINATION ::> 1138181673] [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.A2Billing.php - line:929 - uniqueid:1416931172.3 - DESTINATION ::> 1138181673 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.A2Billing.php - line:936 - uniqueid:1416931172.3 - RULES APPLY ON DESTINATION ::> 1138181673 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.RateEngine.php - line:97 - uniqueid:1416931172.3 - [CC_asterisk_rate-engine: (1, 1138181673)] [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.RateEngine.php - line:118 - uniqueid:1416931172.3 - [CC_asterisk_rate-engine - CALLERID : 1140638059] [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.RateEngine.php - line:179 - uniqueid:1416931172.3 - [rate-engine: Count Total result 2] [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.RateEngine.php - line:344 - uniqueid:1416931172.3 - [CC_asterisk_rate-engine: Count Total result 1] [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.RateEngine.php - line:345 - uniqueid:1416931172.3 - [CC_asterisk_rate-engine: number_trunk 1] [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.A2Billing.php - line:1053 - uniqueid:1416931172.3 - OK - RESFINDRATE::> 1 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.RateEngine.php - line:358 - uniqueid:1416931172.3 - [CC_RATE_ENGINE_ALL_CALCULTIMEOUT (22.506905)] [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.RateEngine.php - line:364 - uniqueid:1416931172.3 - [CC_RATE_ENGINE_ALL_CALCULTIMEOUT: k=0 - res_calcultimeout:13500] [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.A2Billing.php - line:1066 - uniqueid:1416931172.3 - RES_ALL_CALCULTIMEOUT ::> 1 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.A2Billing.php - line:1974 - uniqueid:1416931172.3 - TIMEOUT::> 13500 : minutes=225 - seconds=0 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.RateEngine.php - line:1307 - uniqueid:1416931172.3 - app_callingcard: Dialing 'SIP/callvoipsNT2P1/99901551138181673|37|HRrL(1800000)' with timeout of '13500'. [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.RateEngine.php - line:1327 - uniqueid:1416931172.3 - app_callingcard: CIDGROUPID='-1' OUTBOUND CID SELECTED IS '0'. [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.RateEngine.php - line:1223 - uniqueid:1416931172.3 - [TRUNK STATUS UPDATE : UPDATE cc_trunk SET inuse = inuse + 1 WHERE id_trunk = '36'] [Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: AGI Script Executing Application: (DIAL) Options: (SIP/callvoipsNT2P1/99901551138181673,37,HRrL(1800000)) [Nov 25 13:59:41] VERBOSE[1925][C-00000001] features.c: Setting call duration limit to 1800.000 seconds. [Nov 25 13:59:41] VERBOSE[1925][C-00000001] netsock2.c: Using SIP RTP CoS mark 5 [Nov 25 13:59:41] VERBOSE[1925][C-00000001] app_dial.c: Called SIP/callvoipsNT2P1/99901551138181673 [Nov 25 13:59:49] VERBOSE[1925][C-00000001] app_dial.c: SIP/callvoipsNT2P1-00000003 is making progress passing it to SIP/callvoipsNT2P1-00000002 [Nov 25 13:59:49] VERBOSE[1925][C-00000001] app_dial.c: SIP/callvoipsNT2P1-00000003 answered SIP/callvoipsNT2P1-00000002 [Nov 25 13:59:49] VERBOSE[1925][C-00000001] bridge_channel.c: Channel SIP/callvoipsNT2P1-00000002 joined 'simple_bridge' basic-bridge <595f8eec-420a-4e6a-aeab-dd14fc3e1e75> [Nov 25 13:59:49] VERBOSE[1930][C-00000001] bridge_channel.c: Channel SIP/callvoipsNT2P1-00000003 joined 'simple_bridge' basic-bridge <595f8eec-420a-4e6a-aeab-dd14fc3e1e75> [Nov 25 13:59:55] WARNING[1930][C-00000001] chan_sip.c: Can't send 10 type frames with SIP write [Nov 25 13:59:56] WARNING[1930][C-00000001] chan_sip.c: Can't send 10 type frames with SIP write [Nov 25 13:59:58] WARNING[1925][C-00000001] chan_sip.c: Can't send 10 type frames with SIP write [Nov 25 13:59:58] WARNING[1925][C-00000001] chan_sip.c: Can't send 10 type frames with SIP write [Nov 25 13:59:58] WARNING[1925][C-00000001] chan_sip.c: Can't send 10 type frames with SIP write [Nov 25 13:59:58] WARNING[1925][C-00000001] chan_sip.c: Can't send 10 type frames with SIP write [Nov 25 13:59:58] WARNING[1925][C-00000001] chan_sip.c: Can't send 10 type frames with SIP write [Nov 25 13:59:58] WARNING[1925][C-00000001] chan_sip.c: Can't send 10 type frames with SIP write [Nov 25 13:59:58] WARNING[1925][C-00000001] chan_sip.c: Can't send 10 type frames with SIP write [Nov 25 13:59:58] WARNING[1925][C-00000001] chan_sip.c: Can't send 10 type frames with SIP write [Nov 25 13:59:58] WARNING[1925][C-00000001] chan_sip.c: Can't send 10 type frames with SIP write [Nov 25 13:59:59] WARNING[1930][C-00000001] chan_sip.c: Can't send 10 type frames with SIP write [Nov 25 14:00:00] WARNING[1930][C-00000001] chan_sip.c: Can't send 10 type frames with SIP write [Nov 25 14:00:01] WARNING[1930][C-00000001] chan_sip.c: Can't send 10 type frames with SIP write [Nov 25 14:00:03] VERBOSE[1925][C-00000001] bridge_channel.c: Channel SIP/callvoipsNT2P1-00000002 left 'simple_bridge' basic-bridge <595f8eec-420a-4e6a-aeab-dd14fc3e1e75> [Nov 25 14:00:03] VERBOSE[1930][C-00000001] bridge_channel.c: Channel SIP/callvoipsNT2P1-00000003 left 'simple_bridge' basic-bridge <595f8eec-420a-4e6a-aeab-dd14fc3e1e75> [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.RateEngine.php - line:1336 - uniqueid:1416931172.3 - DIAL SIP/callvoipsNT2P1/99901551138181673|37|HRrL(1800000) [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.RateEngine.php - line:1223 - uniqueid:1416931172.3 - [TRUNK STATUS UPDATE : UPDATE cc_trunk SET inuse = inuse - 1 WHERE id_trunk = '36'] [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.RateEngine.php - line:1486 - uniqueid:1416931172.3 - -> dialstatus : ANSWER, answered time is 0 [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.RateEngine.php - line:1490 - uniqueid:1416931172.3 - [USEDRATECARD=0] [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.RateEngine.php - line:1038 - uniqueid:1416931172.3 - :[sessiontime:0 - id_cc_package_offer:-1 - package2apply:] [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.RateEngine.php - line:1114 - uniqueid:1416931172.3 - [CC_RATE_ENGINE_UPDATESYSTEM: usedratecard K=0 - (sessiontime=0 :: dialstatus=ANSWER :: buycost=0 :: cost= : signe_cc_call=-: signe=+)] [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.RateEngine.php - line:1174 - uniqueid:1416931172.3 - [CC_asterisk_stop : SQL: DONE : result=1] [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.RateEngine.php - line:1175 - uniqueid:1416931172.3 - [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 , a2b_custom1, a2b_custom2) VALUES ('1416931172.3', 'SIP/callvoipsNT2P1-00000002', '1', '', SUBDATE(CURRENT_TIMESTAMP, INTERVAL 0 SECOND) , '0', '0', '1138181673', 1, now() , '-0', '1', '10', '22235', '36', '1140638059', '0', '0', NULL, '1138181673', '113818' , '', '')] [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:a2billing.php - line:1192 - uniqueid:1416931172.3 - [CALLBACK]:[a2billing end loop num_try] RateEngine->usedratecard=0 [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.A2Billing.php - line:780 - uniqueid:1416931172.3 - [CARD STATUS UPDATE] [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.A2Billing.php - line:789 - uniqueid:1416931172.3 - [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse = inuse - 1, credit = credit + 0.25 WHERE username = '98769123457'] [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:a2billing.php - line:1539 - uniqueid:1416931172.3 - [CALLBACK 1ST LEG]:[INFO FOR THE 1ST LEG - callback_username=98769123457 [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:a2billing.php - line:1540 - uniqueid:1416931172.3 - [CALLBACK 1ST LEG]:[TRY : callingcard_ivr_authenticate] [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.A2Billing.php - line:2869 - uniqueid:1416931172.3 - - Account code ::> 98769123457 [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.A2Billing.php - line:2886 - uniqueid:1416931172.3 - - Retrieve account info SQL ::> SELECT credit, tariff, activated, inuse, simultaccess, typepaid, creditlimit, language, removeinterprefix, redial, enableexpire, UNIX_TIMESTAMP(expirationdate), expiredays, nbused, UNIX_TIMESTAMP(firstusedate), UNIX_TIMESTAMP(cc_card.creationdate), cc_card.currency, cc_card.lastname, cc_card.firstname, cc_card.email, cc_card.uipass, cc_card.id_campaign, cc_card.id, useralias, status, voicemail_permitted, voicemail_activated, cc_card.restriction, cc_country.countryprefix FROM cc_card LEFT JOIN cc_tariffgroup ON tariff = cc_tariffgroup.id LEFT JOIN cc_country ON cc_card.country = cc_country.countrycode WHERE username = '98769123457' [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.A2Billing.php - line:2959 - uniqueid:1416931172.3 - [credit=45.01381 :: tariff=1 :: status=1 :: isused=0 :: simultaccess=1 :: typepaid=0 :: creditlimit= :: language=br] [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.A2Billing.php - line:780 - uniqueid:1416931172.3 - [CARD STATUS UPDATE] [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.A2Billing.php - line:789 - uniqueid:1416931172.3 - [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse = inuse + 1, credit = credit - 0.25 WHERE username = '98769123457'] [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:a2billing.php - line:1551 - uniqueid:1416931172.3 - [CALLBACK 1ST LEG]:[MAKE BILLING FOR THE 1ST LEG - TARIFF:1;CALLED=1184146661] [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.RateEngine.php - line:97 - uniqueid:1416931172.3 - [CC_asterisk_rate-engine: (1, 1184146661)] [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.RateEngine.php - line:118 - uniqueid:1416931172.3 - [CC_asterisk_rate-engine - CALLERID : 1140638059] [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.RateEngine.php - line:179 - uniqueid:1416931172.3 - [rate-engine: Count Total result 2] [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.RateEngine.php - line:344 - uniqueid:1416931172.3 - [CC_asterisk_rate-engine: Count Total result 1] [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.RateEngine.php - line:345 - uniqueid:1416931172.3 - [CC_asterisk_rate-engine: number_trunk 1] [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.RateEngine.php - line:358 - uniqueid:1416931172.3 - [CC_RATE_ENGINE_ALL_CALCULTIMEOUT (45.01381)] [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.RateEngine.php - line:364 - uniqueid:1416931172.3 - [CC_RATE_ENGINE_ALL_CALCULTIMEOUT: k=0 - res_calcultimeout:4218]
[Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.RateEngine.php - line:1038 - uniqueid:1416931172.3 - :[sessiontime:22 - id_cc_package_offer:-1 - package2apply:] [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.RateEngine.php - line:807 - uniqueid:1416931172.3 - [CC_RATE_ENGINE_CALCULCOST: K=0 - CALLDURATION:22 - freetimetocall_used=0 - freetimetocall_left=0] [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.RateEngine.php - line:889 - uniqueid:1416931172.3 - [TEMP - CC_RATE_ENGINE_CALCULCOST: 1. COST: -0.32]:[ (30/60) * 0.64 ] [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.RateEngine.php - line:974 - uniqueid:1416931172.3 - [CC_RATE_ENGINE_CALCULCOST: K=0 - BUYCOST:-0.091666666666667 - SELLING COST:-0.32] [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.RateEngine.php - line:1114 - uniqueid:1416931172.3 - [CC_RATE_ENGINE_UPDATESYSTEM: usedratecard K=0 - (sessiontime=22 :: dialstatus=ANSWERED :: buycost=0.091666666666667 :: cost=-0.32 : signe_cc_call=+: signe=-)] [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.RateEngine.php - line:1174 - uniqueid:1416931172.3 - [CC_asterisk_stop : SQL: DONE : result=1] [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.RateEngine.php - line:1175 - uniqueid:1416931172.3 - [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 , a2b_custom1, a2b_custom2) VALUES ('1416931172.3', 'SIP/callvoipsNT2P1-00000002', '1', '', SUBDATE(CURRENT_TIMESTAMP, INTERVAL 22 SECOND) , '22', '22', '1184146661', 1, now() , '+0.32', '1', '16', '103', '36', '1140638059', '4', '0.091666666666667', NULL, '1184146661', '348' , '', '')] [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.RateEngine.php - line:1199 - uniqueid:1416931172.3 - [CC_asterisk_stop 1.2: SQL: UPDATE cc_card SET credit = credit-0.32 , lastuse = now(), nbused = nbused + 1 WHERE username = '98769123457'] [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.RateEngine.php - line:1203 - uniqueid:1416931172.3 - UPDATE cc_trunk SET secondusedreal = secondusedreal + 22 WHERE id_trunk = '36' [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.RateEngine.php - line:1207 - uniqueid:1416931172.3 - UPDATE cc_tariffplan SET secondusedreal = secondusedreal + 22 WHERE id = '16' [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.A2Billing.php - line:780 - uniqueid:1416931172.3 - [CARD STATUS UPDATE] [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.A2Billing.php - line:789 - uniqueid:1416931172.3 - [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse = inuse - 1, credit = credit + 0.25 WHERE username = '98769123457'] [Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: <SIP/callvoipsNT2P1-00000002>AGI Script a2billing.php completed, returning 4 [Nov 25 14:00:03] VERBOSE[1925][C-00000001] pbx.c: Spawn extension (a2billing-callback, 1138181673, 1) exited non-zero on 'SIP/callvoipsNT2P1-00000002' [Nov 25 14:00:03] VERBOSE[1925][C-00000001] pbx.c: Executing [h@a2billing-callback:1] Hangup("SIP/callvoipsNT2P1-00000002", "") in new stack [Nov 25 14:00:03] VERBOSE[1925][C-00000001] pbx.c: Spawn extension (a2billing-callback, h, 1) exited non-zero on 'SIP/callvoipsNT2P1-00000002'