{"action":"created","issue":{"url":"https://api.github.com/repos/Star2Billing/a2billing/issues/91","labels_url":"https://api.github.com/repos/Star2Billing/a2billing/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/Star2Billing/a2billing/issues/91/comments","events_url":"https://api.github.com/repos/Star2Billing/a2billing/issues/91/events","html_url":"https://github.com/Star2Billing/a2billing/issues/91","id":50047074,"number":91,"title":"a2billing 2.0.16 + asterisk 13.0.1 --callback balance reduces only one leg","user":{"login":"dbbrito","id":9949166,"avatar_url":"https://avatars.githubusercontent.com/u/9949166?v=3","gravatar_id":"","url":"https://api.github.com/users/dbbrito","html_url":"https://github.com/dbbrito","followers_url":"https://api.github.com/users/dbbrito/followers","following_url":"https://api.github.com/users/dbbrito/following{/other_user}","gists_url":"https://api.github.com/users/dbbrito/gists{/gist_id}","starred_url":"https://api.github.com/users/dbbrito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbbrito/subscriptions","organizations_url":"https://api.github.com/users/dbbrito/orgs","repos_url":"https://api.github.com/users/dbbrito/repos","events_url":"https://api.github.com/users/dbbrito/events{/privacy}","received_events_url":"https://api.github.com/users/dbbrito/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-11-25T16:07:31Z","updated_at":"2015-05-31T12:01:18Z","closed_at":null,"body":"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. \r\nThanks\r\n![callbacka2b](https://cloud.githubusercontent.com/assets/9949166/5186335/c49cb85c-74ac-11e4-8fb1-72fe0e64b988.jpg)\r\n\r\n[Nov 25 13:59:32] VERBOSE[1811] netsock2.c: Using SIP RTP CoS mark 5\r\n[Nov 25 13:59:32] VERBOSE[1925] dial.c: Called callvoipsNT2P1/99901551184146661\r\n[Nov 25 13:59:36] VERBOSE[1925] dial.c: SIP/callvoipsNT2P1-00000002 is making progress\r\n[Nov 25 13:59:41] VERBOSE[1925] dial.c: SIP/callvoipsNT2P1-00000002 answered\r\n[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\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php\r\n[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:\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:Class.A2Billing.php - line:591 - uniqueid: - Array\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: (\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [callerid_] => 0\r\n[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)\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [description] => agi-config\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [asterisk_version] => 1_11\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [answer_call] => 0\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [play_audio] => 1\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [say_goodbye] => 0\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [play_menulanguage] => 0\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [force_language] => br\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [intro_prompt] => \r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [min_credit_2call] => \r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [min_duration_2bill] => 0\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [notenoughcredit_cardnumber] => 0\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [notenoughcredit_assign_newcardnumber_cid] => 0\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [use_dnid] => 1\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [no_auth_dnid] => Array\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:         (\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:             [0] => 2400\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:             [1] => 2300\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:         )\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: \r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [number_try] => 1\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [force_callplan_id] => \r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [say_balance_after_auth] => 0\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [say_balance_after_call] => 0\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [say_rateinitial] => 0\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [say_timetocall] => 0\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [auto_setcallerid] => 0\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [force_callerid] => YES\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [cid_sanitize] => NO\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [cid_enable] => 1\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [cid_askpincode_ifnot_callerid] => 0\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [failover_lc_prefix] => 0\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [cid_auto_assign_card_to_cid] => 1\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [callerid_authentication_over_cardnumber] => 0\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [sip_iax_friends] => 0\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [sip_iax_pstn_direct_call_prefix] => 555\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [sip_iax_pstn_direct_call] => 0\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [ivr_voucher] => 0\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [ivr_voucher_prefix] => 8\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [jump_voucher_if_min_credit] => 0\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [dialcommand_param] => |37|HRrL(1800000)\r\n[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)\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [switchdialcommand] => 0\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [failover_recursive_limit] => 4\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [maxtime_tocall_negatif_free_route] => 5400\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [send_reminder] => 0\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [record_call] => 0\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [monitor_formatfile] => gsm\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [agi_force_currency] => \r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [currency_association] => Array\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:         (\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:             [0] => usd:dollars\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:             [1] => mxn:pesos\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:             [2] => eur:euros\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:             [3] => all:credit\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:         )\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: \r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [local_dialing_addcountryprefix] => 0\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [max_call_call_2_did] => 3600\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [file_conf_enter_destination] => \r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [conf_order_menulang] => en:fr:es\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [callback_bill_1stleg_ifcall_notconnected] => 1\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [international_prefixes] => Array\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:         (\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:             [0] => 011\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:             [1] => 00\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:             [2] => 09\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:             [3] => 1\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:         )\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: \r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [extracharge_did] => Array\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:         (\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:             [0] => 1800\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:             [1] => 1900\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:         )\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: \r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [extracharge_fee] => Array\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:         (\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:             [0] => 0\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:             [1] => 0\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:         )\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: \r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [extracharge_buyfee] => Array\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:         (\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:             [0] => 0\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:             [1] => 0\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:         )\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: \r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [maxtime_tounlimited_calls] => 5400\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [maxtime_tofree_calls] => 5400\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [callplan_deck_minute_threshold] => \r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [disable_announcement_seconds] => 0\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [verbosity_level] => 4\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [logging_level] => 4\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [dial_balance_reservation] => 0.25\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [logger_enable] => 1\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [log_file] => /var/log/a2billing/a2billing.log\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [cid_auto_create_card_len] => 10\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [cid_auto_create_card] => 0\r\n[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)\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [currency_association_internal] => Array\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:         (\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:             [usd] => dollars\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:             [mxn] => pesos\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:             [eur] => euros\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:             [all] => credit\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:         )\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: \r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [file_conf_enter_menulang] => prepaid-menulang\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [ivr_voucher_prefixe] => 8\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [cheat_on_announcement_time] => 0\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [busy_timeout] => 1\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [lcr_mode] => 0\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: )\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: \r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:a2billing.php - line:117 - uniqueid: - IDCONFIG : 6\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:a2billing.php - line:118 - uniqueid: - MODE : callback\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:a2billing.php - line:130 - uniqueid: - AGI Request:\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: Array\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: (\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [agi_request] => a2billing.php\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [agi_channel] => SIP/callvoipsNT2P1-00000002\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [agi_language] => br\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [agi_type] => SIP\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [agi_uniqueid] => 1416931172.3\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [agi_version] => 13.0.1\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [agi_callerid] => 1140638059\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [agi_calleridname] => unknown\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [agi_callingpres] => 0\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [agi_callingani2] => 0\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [agi_callington] => 0\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [agi_callingtns] => 0\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [agi_dnid] => unknown\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [agi_rdnis] => unknown\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [agi_context] => a2billing-callback\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [agi_extension] => 1138181673\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [agi_priority] => 1\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [agi_enhanced] => 0.0\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [agi_accountcode] => 98769123457\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [agi_threadid] => 140396534720256\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [agi_arg_1] => 6\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback:     [agi_arg_2] => callback\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: )\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: \r\n[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]\r\n[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\r\n[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]\r\n[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]\r\n[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\r\n[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]\r\n[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]\r\n[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']\r\n[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]\r\n[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\r\n[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'\r\n[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]\r\n[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]\r\n[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']\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:a2billing.php - line:1143 - uniqueid:1416931172.3 - [CALLBACK]:[Start]\r\n[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]\r\n[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 : ]\r\n[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)\r\n[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]\r\n[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\r\n[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\r\n[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)]\r\n[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]\r\n[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]\r\n[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]\r\n[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]\r\n[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\r\n[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)]\r\n[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]\r\n[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\r\n[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\r\n[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'.\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: \r\n[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'.\r\n[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']\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] res_agi.c: AGI Script Executing Application: (DIAL) Options: (SIP/callvoipsNT2P1/99901551138181673,37,HRrL(1800000))\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] features.c: Setting call duration limit to 1800.000 seconds.\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] netsock2.c: Using SIP RTP CoS mark 5\r\n[Nov 25 13:59:41] VERBOSE[1925][C-00000001] app_dial.c: Called SIP/callvoipsNT2P1/99901551138181673\r\n[Nov 25 13:59:49] VERBOSE[1925][C-00000001] app_dial.c: SIP/callvoipsNT2P1-00000003 is making progress passing it to SIP/callvoipsNT2P1-00000002\r\n[Nov 25 13:59:49] VERBOSE[1925][C-00000001] app_dial.c: SIP/callvoipsNT2P1-00000003 answered SIP/callvoipsNT2P1-00000002\r\n[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>\r\n[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>\r\n[Nov 25 13:59:55] WARNING[1930][C-00000001] chan_sip.c: Can't send 10 type frames with SIP write\r\n[Nov 25 13:59:56] WARNING[1930][C-00000001] chan_sip.c: Can't send 10 type frames with SIP write\r\n[Nov 25 13:59:58] WARNING[1925][C-00000001] chan_sip.c: Can't send 10 type frames with SIP write\r\n[Nov 25 13:59:58] WARNING[1925][C-00000001] chan_sip.c: Can't send 10 type frames with SIP write\r\n[Nov 25 13:59:58] WARNING[1925][C-00000001] chan_sip.c: Can't send 10 type frames with SIP write\r\n[Nov 25 13:59:58] WARNING[1925][C-00000001] chan_sip.c: Can't send 10 type frames with SIP write\r\n[Nov 25 13:59:58] WARNING[1925][C-00000001] chan_sip.c: Can't send 10 type frames with SIP write\r\n[Nov 25 13:59:58] WARNING[1925][C-00000001] chan_sip.c: Can't send 10 type frames with SIP write\r\n[Nov 25 13:59:58] WARNING[1925][C-00000001] chan_sip.c: Can't send 10 type frames with SIP write\r\n[Nov 25 13:59:58] WARNING[1925][C-00000001] chan_sip.c: Can't send 10 type frames with SIP write\r\n[Nov 25 13:59:58] WARNING[1925][C-00000001] chan_sip.c: Can't send 10 type frames with SIP write\r\n[Nov 25 13:59:59] WARNING[1930][C-00000001] chan_sip.c: Can't send 10 type frames with SIP write\r\n[Nov 25 14:00:00] WARNING[1930][C-00000001] chan_sip.c: Can't send 10 type frames with SIP write\r\n[Nov 25 14:00:01] WARNING[1930][C-00000001] chan_sip.c: Can't send 10 type frames with SIP write\r\n[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>\r\n[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>\r\n[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)\r\n[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']\r\n[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 \r\n[Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: \r\n[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]\r\n[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:]\r\n[Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: \r\n[Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: \r\n[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=+)]\r\n[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]\r\n[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' , '', '')]\r\n[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\r\n[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]\r\n[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']\r\n[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\r\n[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]\r\n[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\r\n[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'\r\n[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]\r\n[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]\r\n[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']\r\n[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]\r\n[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)]\r\n[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]\r\n[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]\r\n[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]\r\n[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]\r\n[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)]\r\n[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]\r\n[Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: file:a2billing.php - line:1566 - uniqueid:1416931172.3 - [CALLBACK]:[RateEngine->answeredtime=22]\r\n[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:]\r\n[Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: \r\n[Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: a2billing.php,6,callback: \r\n[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]\r\n[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 ]\r\n[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]\r\n[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=-)]\r\n[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]\r\n[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' , '', '')]\r\n[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']\r\n[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'\r\n[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'\r\n[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]\r\n[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']\r\n[Nov 25 14:00:03] VERBOSE[1925][C-00000001] res_agi.c: <SIP/callvoipsNT2P1-00000002>AGI Script a2billing.php completed, returning 4\r\n[Nov 25 14:00:03] VERBOSE[1925][C-00000001] pbx.c: Spawn extension (a2billing-callback, 1138181673, 1) exited non-zero on 'SIP/callvoipsNT2P1-00000002'\r\n[Nov 25 14:00:03] VERBOSE[1925][C-00000001] pbx.c: Executing [h@a2billing-callback:1] Hangup(\"SIP/callvoipsNT2P1-00000002\", \"\") in new stack\r\n[Nov 25 14:00:03] VERBOSE[1925][C-00000001] pbx.c: Spawn extension (a2billing-callback, h, 1) exited non-zero on 'SIP/callvoipsNT2P1-00000002'"},"comment":{"url":"https://api.github.com/repos/Star2Billing/a2billing/issues/comments/107162270","html_url":"https://github.com/Star2Billing/a2billing/issues/91#issuecomment-107162270","issue_url":"https://api.github.com/repos/Star2Billing/a2billing/issues/91","id":107162270,"user":{"login":"dbbrito","id":9949166,"avatar_url":"https://avatars.githubusercontent.com/u/9949166?v=3","gravatar_id":"","url":"https://api.github.com/users/dbbrito","html_url":"https://github.com/dbbrito","followers_url":"https://api.github.com/users/dbbrito/followers","following_url":"https://api.github.com/users/dbbrito/following{/other_user}","gists_url":"https://api.github.com/users/dbbrito/gists{/gist_id}","starred_url":"https://api.github.com/users/dbbrito/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbbrito/subscriptions","organizations_url":"https://api.github.com/users/dbbrito/orgs","repos_url":"https://api.github.com/users/dbbrito/repos","events_url":"https://api.github.com/users/dbbrito/events{/privacy}","received_events_url":"https://api.github.com/users/dbbrito/received_events","type":"User","site_admin":false},"created_at":"2015-05-31T12:01:18Z","updated_at":"2015-05-31T12:01:18Z","body":"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"}}