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
========================================================================= Connected to Asterisk 13.0.0 currently running on ip-10-0-0-10 (pid = 884) ip-10-0-0-10*CLI> [0K == Using SIP RTP CoS mark 5
[Kip-10-0-0-10*CLI> [0K -- Called BRNT2P1/999015511983146661
[Kip-10-0-0-10*CLI> [0K -- SIP/BRNT2P1-00000006 is making progress
[Kip-10-0-0-10*CLI> [0K > 0x7f3fa400c030 -- Probation passed - setting RTP source address to 169.132.139.10:21540
[Kip-10-0-0-10*CLI> [0K -- SIP/BRNT2P1-00000006 answered -- Executing [1138231333@a2billing-callback:1] [1;36mAGI[0m("[1;35mSIP/BRNT2P1-00000006[0m", "[1;35ma2billing.php,6,callback[0m") in new stack
[Kip-10-0-0-10*CLI> [0K -- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
[Kip-10-0-0-10*CLI> [0K > 0x7f3fa400c030 -- Probation passed - setting RTP source address to 169.132.139.10:21540
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.A2Billing.php - line:590 - uniqueid: - A2Billing AGI internal configuration:
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.A2Billing.php - line:591 - uniqueid: - Array
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: (
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [callerid_] => 0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [dialcommand_param_call_2did] => |70|HimL(3600000:61000:30000)
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [description] => agi-config
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [asterisk_version] => 1_11
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [answer_call] => 0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [play_audio] => 1
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [say_goodbye] => 0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [play_menulanguage] => 0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [force_language] => br
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [intro_prompt] =>
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [min_credit_2call] =>
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [min_duration_2bill] => 0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [notenoughcredit_cardnumber] => 0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [notenoughcredit_assign_newcardnumber_cid] => 0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [use_dnid] => 1
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [no_auth_dnid] => Array
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: (
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [0] => 2400
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [1] => 2300
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: )
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback:
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [number_try] => 1
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [force_callplan_id] =>
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [say_balance_after_auth] => 0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [say_balance_after_call] => 0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [say_rateinitial] => 0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [say_timetocall] => 0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [auto_setcallerid] => 0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [force_callerid] => YES
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [cid_sanitize] => NO
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [cid_enable] => 1
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [cid_askpincode_ifnot_callerid] => 0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [failover_lc_prefix] => 0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [cid_auto_assign_card_to_cid] => 1
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [callerid_authentication_over_cardnumber] => 0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [sip_iax_friends] => 0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [sip_iax_pstn_direct_call_prefix] => 555
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [sip_iax_pstn_direct_call] => 0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [ivr_voucher] => 0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [ivr_voucher_prefix] => 8
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [jump_voucher_if_min_credit] => 0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [dialcommand_param] => |37|HRrL(1800000)
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [dialcommand_param_sipiax_friend] => |35|HiL(3600000:61000:30000)
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [switchdialcommand] => 0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [failover_recursive_limit] => 4
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [maxtime_tocall_negatif_free_route] => 5400
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [send_reminder] => 0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [record_call] => 0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [monitor_formatfile] => gsm
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [agi_force_currency] =>
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [currency_association] => Array
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: (
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [0] => usd:dollars
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [1] => mxn:pesos
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [2] => eur:euros
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [3] => all:credit
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: )
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback:
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [local_dialing_addcountryprefix] => 0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [max_call_call_2_did] => 3600
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [file_conf_enter_destination] =>
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [conf_order_menulang] => en:fr:es
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [callback_bill_1stleg_ifcall_notconnected] => 1
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [international_prefixes] => Array
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: (
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [0] => 011
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [1] => 00
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [2] => 09
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [3] => 1 a2billing.php,6,callback: )
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback:
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [extracharge_did] => Array
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: (
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [0] => 1800
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [1] => 1900 a2billing.php,6,callback: )
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback:
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [extracharge_fee] => Array
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: (
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [0] => 0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [1] => 0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: )
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback:
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [extracharge_buyfee] => Array
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: (
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [0] => 0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [1] => 0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: )
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback:
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [maxtime_tounlimited_calls] => 5400
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [maxtime_tofree_calls] => 5400
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [callplan_deck_minute_threshold] =>
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [disable_announcement_seconds] => 0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [verbosity_level] => 4
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [logging_level] => 4
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [dial_balance_reservation] => 0.25
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [logger_enable] => 1
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [log_file] => /var/log/a2billing/a2billing.log
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [cid_auto_create_card_len] => 10
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [cid_auto_create_card] => 0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [dialcommand_param_call_2did ] => |30|HL(3600000:61000:30000)
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [currency_association_internal] => Array
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: (
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [usd] => dollars
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [mxn] => pesos
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [eur] => euros
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [all] => credit
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: )
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback:
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [file_conf_enter_menulang] => prepaid-menulang
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [ivr_voucher_prefixe] => 8
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [cheat_on_announcement_time] => 0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [busy_timeout] => 1
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [lcr_mode] => 0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: )
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback:
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:a2billing.php - line:117 - uniqueid: - IDCONFIG : 6
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:a2billing.php - line:118 - uniqueid: - MODE : callback
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:a2billing.php - line:130 - uniqueid: - AGI Request:
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: Array
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: (
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [agi_request] => a2billing.php
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [agi_channel] => SIP/BRNT2P1-00000006
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [agi_language] => br
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [agi_type] => SIP
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [agi_uniqueid] => 1416133571.18
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [agi_version] => 13.0.0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [agi_callerid] => 1140638059
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [agi_calleridname] => unknown
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [agi_callingpres] => 0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [agi_callingani2] => 0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [agi_callington] => 0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [agi_callingtns] => 0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [agi_dnid] => unknown
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [agi_rdnis] => unknown
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [agi_context] => a2billing-callback
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [agi_extension] => 1138231333
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [agi_priority] => 1
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [agi_enhanced] => 0.0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [agi_accountcode] => 7341621469
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [agi_threadid] => 139909805135616
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [agi_arg_1] => 6
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: [agi_arg_2] => callback a2billing.php,6,callback: )
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback:
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:a2billing.php - line:131 - uniqueid: - [INFO : A2Billing - v2.0.16]
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.A2Billing.php - line:748 - uniqueid:1416133571.18 - get_agi_request_parameter = 1140638059 ; SIP/BRNT2P1-00000006 ; 1416133571.18 ; 7341621469 ; 1138231333
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:a2billing.php - line:1072 - uniqueid:1416133571.18 - [CALLBACK]:[MODE : CALLBACK] a2billing.php,6,callback: file:a2billing.php - line:1085 - uniqueid:1416133571.18 - [CALLBACK]:[NO ANSWER CALL] a2billing.php,6,callback: file:Class.A2Billing.php - line:662 - uniqueid:1416133571.18 - FORCE LANGUAGE : br a2billing.php,6,callback: file:Class.A2Billing.php - line:672 - uniqueid:1416133571.18 - [SET CHANNEL(language) br]
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:a2billing.php - line:1128 - uniqueid:1416133571.18 - [CALLBACK]:[GET VARIABLE : CALLED=11983146661 | CALLING=1138231333 | MODE= | TARIFF= | CBID=87147-smdkii5 | LEG=7341621469 | CALLERID=1140638059]
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:a2billing.php - line:1132 - uniqueid:1416133571.18 - [CALLBACK : UPDATE CALLBACK AGI_RESULT : QUERY=UPDATE cc_callback_spool SET agi_result='AGI PROCESSING' WHERE uniqueid='87147-smdkii5'] a2billing.php,6,callback: file:a2billing.php - line:1136 - uniqueid:1416133571.18 - [CALLBACK]:[TRY : callingcard_ivr_authenticate] a2billing.php,6,callback: file:Class.A2Billing.php - line:2869 - uniqueid:1416133571.18 - - Account code ::> 7341621469
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.A2Billing.php - line:2886 - uniqueid:1416133571.18 - - 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 = '7341621469' a2billing.php,6,callback: file:Class.A2Billing.php - line:2959 - uniqueid:1416133571.18 - [credit=47.95781 :: tariff=1 :: status=1 :: isused=0 :: simultaccess=1 :: typepaid=0 :: creditlimit= :: language=br] a2billing.php,6,callback: file:Class.A2Billing.php - line:780 - uniqueid:1416133571.18 - [CARD STATUS UPDATE]
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.A2Billing.php - line:789 - uniqueid:1416133571.18 - [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse = inuse + 1, credit = credit - 0.25 WHERE username = '7341621469'] a2billing.php,6,callback: file:a2billing.php - line:1143 - uniqueid:1416133571.18 - [CALLBACK]:[Start] a2billing.php,6,callback: file:Class.A2Billing.php - line:2528 - uniqueid:1416133571.18 - [AUTO SetCallerID] a2billing.php,6,callback: file:a2billing.php - line:1161 - uniqueid:1416133571.18 - [CALLBACK]:[CHANNEL STATUS : 6 = Line is up][status_channel=4]:[ORIG_CREDIT : 47.95781 - CUR_CREDIT - : 23.978905 - CREDIT MIN_CREDIT_2CALL : ] a2billing.php,6,callback: file:Class.A2Billing.php - line:839 - uniqueid:1416133571.18 - use_dnid:1 && (!in_array:) && len_dnid:(10 || len_exten:10 ) && (try_num:0) a2billing.php,6,callback: file:Class.A2Billing.php - line:848 - uniqueid:1416133571.18 - [USE_DNID DESTINATION ::> 1138231333] a2billing.php,6,callback: file:Class.A2Billing.php - line:929 - uniqueid:1416133571.18 - DESTINATION ::> 1138231333
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.A2Billing.php - line:936 - uniqueid:1416133571.18 - RULES APPLY ON DESTINATION ::> 1138231333
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.RateEngine.php - line:97 - uniqueid:1416133571.18 - [CC_asterisk_rate-engine: (1, 1138231333)]
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.RateEngine.php - line:118 - uniqueid:1416133571.18 - [CC_asterisk_rate-engine - CALLERID : 1140638059]
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.RateEngine.php - line:179 - uniqueid:1416133571.18 - [rate-engine: Count Total result 2]
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.RateEngine.php - line:344 - uniqueid:1416133571.18 - [CC_asterisk_rate-engine: Count Total result 1]
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.RateEngine.php - line:345 - uniqueid:1416133571.18 - [CC_asterisk_rate-engine: number_trunk 1]
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.A2Billing.php - line:1053 - uniqueid:1416133571.18 - OK - RESFINDRATE::> 1
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.RateEngine.php - line:358 - uniqueid:1416133571.18 - [CC_RATE_ENGINE_ALL_CALCULTIMEOUT (23.978905)]
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.RateEngine.php - line:364 - uniqueid:1416133571.18 - [CC_RATE_ENGINE_ALL_CALCULTIMEOUT: k=0 - res_calcultimeout:14382]
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.A2Billing.php - line:1066 - uniqueid:1416133571.18 - RES_ALL_CALCULTIMEOUT ::> 1
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.A2Billing.php - line:1974 - uniqueid:1416133571.18 - TIMEOUT::> 14382 : minutes=239 - seconds=42
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.RateEngine.php - line:1307 - uniqueid:1416133571.18 - app_callingcard: Dialing 'SIP/BRNT2P1/99901551138231333|37|HRrL(1800000)' with timeout of '14382'.
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback:
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.RateEngine.php - line:1327 - uniqueid:1416133571.18 - app_callingcard: CIDGROUPID='-1' OUTBOUND CID SELECTED IS '0'. a2billing.php,6,callback: file:Class.RateEngine.php - line:1223 - uniqueid:1416133571.18 - [TRUNK STATUS UPDATE : UPDATE cc_trunk SET inuse = inuse + 1 WHERE id_trunk = '36']
[Kip-10-0-0-10*CLI> [0K -- AGI Script Executing Application: (DIAL) Options: (SIP/BRNT2P1/99901551138231333,37,HRrL(1800000)) -- Setting call duration limit to 1800.000 seconds. == Using SIP RTP CoS mark 5 -- Called SIP/BRNT2P1/99901551138231333
[Kip-10-0-0-10*CLI> [0K -- SIP/BRNT2P1-00000007 is making progress passing it to SIP/BRNT2P1-00000006
[Kip-10-0-0-10*CLI> [0K > 0x7f3fb0011c10 -- Probation passed - setting RTP source address to 169.132.139.21:22512
[Kip-10-0-0-10*CLI> [0K -- SIP/BRNT2P1-00000007 answered SIP/BRNT2P1-00000006
[Kip-10-0-0-10*CLI> [0K -- Channel SIP/BRNT2P1-00000006 joined 'simple_bridge' basic-bridge <3ce8be82-9c56-4f01-a528-0be5170d96c0>
[Kip-10-0-0-10*CLI> [0K -- Channel SIP/BRNT2P1-00000007 joined 'simple_bridge' basic-bridge <3ce8be82-9c56-4f01-a528-0be5170d96c0>
[Kip-10-0-0-10*CLI> [0K > 0x7f3fb0011c10 -- Probation passed - setting RTP source address to 169.132.139.21:22512
[Kip-10-0-0-10*CLI> [0K[Nov 16 08:26:30] [1;31mWARNING[0m[2067][C-00000006]: [1;37mchan_sip.c[0m:[1;37m7349[0m [1;37msip_write[0m: Can't send 10 type frames with SIP write
[Kip-10-0-0-10*CLI> [0K[Nov 16 08:26:33] [1;31mWARNING[0m[2067][C-00000006]: [1;37mchan_sip.c[0m:[1;37m7349[0m [1;37msip_write[0m: Can't send 10 type frames with SIP write
[Kip-10-0-0-10*CLI> [0K[Nov 16 08:26:35] [1;31mWARNING[0m[2067][C-00000006]: [1;37mchan_sip.c[0m:[1;37m7349[0m [1;37msip_write[0m: Can't send 10 type frames with SIP write
[Kip-10-0-0-10*CLI> [0K[Nov 16 08:26:38] [1;31mWARNING[0m[2067][C-00000006]: [1;37mchan_sip.c[0m:[1;37m7349[0m [1;37msip_write[0m: Can't send 10 type frames with SIP write
[Kip-10-0-0-10*CLI> [0K[Nov 16 08:26:39] [1;31mWARNING[0m[2067][C-00000006]: [1;37mchan_sip.c[0m:[1;37m7349[0m [1;37msip_write[0m: Can't send 10 type frames with SIP write
[Kip-10-0-0-10*CLI> [0K[Nov 16 08:26:39] [1;31mWARNING[0m[2067][C-00000006]: [1;37mchan_sip.c[0m:[1;37m7349[0m [1;37msip_write[0m: Can't send 10 type frames with SIP write
[Kip-10-0-0-10*CLI> [0K[Nov 16 08:26:43] [1;31mWARNING[0m[2067][C-00000006]: [1;37mchan_sip.c[0m:[1;37m7349[0m [1;37msip_write[0m: Can't send 10 type frames with SIP write
[Kip-10-0-0-10*CLI> [0K[Nov 16 08:26:43] [1;31mWARNING[0m[2067][C-00000006]: [1;37mchan_sip.c[0m:[1;37m7349[0m [1;37msip_write[0m: Can't send 10 type frames with SIP write
[Kip-10-0-0-10*CLI> [0K -- Channel SIP/BRNT2P1-00000006 left 'simple_bridge' basic-bridge <3ce8be82-9c56-4f01-a528-0be5170d96c0> -- Channel SIP/BRNT2P1-00000007 left 'simple_bridge' basic-bridge <3ce8be82-9c56-4f01-a528-0be5170d96c0> a2billing.php,6,callback: file:Class.RateEngine.php - line:1336 - uniqueid:1416133571.18 - DIAL SIP/BRNT2P1/99901551138231333|37|HRrL(1800000) a2billing.php,6,callback: file:Class.RateEngine.php - line:1223 - uniqueid:1416133571.18 - [TRUNK STATUS UPDATE : UPDATE cc_trunk SET inuse = inuse - 1 WHERE id_trunk = '36'] a2billing.php,6,callback: file:Class.RateEngine.php - line:1486 - uniqueid:1416133571.18 - -> dialstatus : ANSWER, answered time is 0 a2billing.php,6,callback: a2billing.php,6,callback: file:Class.RateEngine.php - line:1490 - uniqueid:1416133571.18 - [USEDRATECARD=0] a2billing.php,6,callback: file:Class.RateEngine.php - line:1038 - uniqueid:1416133571.18 - :[sessiontime:0 - id_cc_package_offer:-1 - package2apply:] a2billing.php,6,callback: a2billing.php,6,callback: a2billing.php,6,callback: file:Class.RateEngine.php - line:1114 - uniqueid:1416133571.18 - [CC_RATE_ENGINE_UPDATESYSTEM: usedratecard K=0 - (sessiontime=0 :: dialstatus=ANSWER :: buycost=0 :: cost= : signe_cc_call=-: signe=+)] a2billing.php,6,callback: file:Class.RateEngine.php - line:1174 - uniqueid:1416133571.18 - [CC_asterisk_stop : SQL: DONE : result=1]
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.RateEngine.php - line:1175 - uniqueid:1416133571.18 - [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 ('1416133571.18', 'SIP/BRNT2P1-00000006', '1', '', SUBDATE(CURRENT_TIMESTAMP, INTERVAL 0 SECOND) , '0', '0', '1138231333', 1, now() , '-0', '1', '10', '22239', '36', '1140638059', '0', '0', NULL, '1138231333', '113823' , '', '')]
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:a2billing.php - line:1192 - uniqueid:1416133571.18 - [CALLBACK]:[a2billing end loop num_try] RateEngine->usedratecard=0
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.A2Billing.php - line:780 - uniqueid:1416133571.18 - [CARD STATUS UPDATE]
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.A2Billing.php - line:789 - uniqueid:1416133571.18 - [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse = inuse - 1, credit = credit + 0.25 WHERE username = '7341621469']
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:a2billing.php - line:1539 - uniqueid:1416133571.18 - [CALLBACK 1ST LEG]:[INFO FOR THE 1ST LEG - callback_username=7341621469
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:a2billing.php - line:1540 - uniqueid:1416133571.18 - [CALLBACK 1ST LEG]:[TRY : callingcard_ivr_authenticate]
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.A2Billing.php - line:2869 - uniqueid:1416133571.18 - - Account code ::> 7341621469
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.A2Billing.php - line:2886 - uniqueid:1416133571.18 - - 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 = '7341621469'
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.A2Billing.php - line:2959 - uniqueid:1416133571.18 - [credit=47.95781 :: tariff=1 :: status=1 :: isused=0 :: simultaccess=1 :: typepaid=0 :: creditlimit= :: language=br]
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.A2Billing.php - line:780 - uniqueid:1416133571.18 - [CARD STATUS UPDATE]
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.A2Billing.php - line:789 - uniqueid:1416133571.18 - [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse = inuse + 1, credit = credit - 0.25 WHERE username = '7341621469']
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:a2billing.php - line:1551 - uniqueid:1416133571.18 - [CALLBACK 1ST LEG]:[MAKE BILLING FOR THE 1ST LEG - TARIFF:1;CALLED=11983146661]
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.RateEngine.php - line:97 - uniqueid:1416133571.18 - [CC_asterisk_rate-engine: (1, 11983146661)]
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.RateEngine.php - line:118 - uniqueid:1416133571.18 - [CC_asterisk_rate-engine - CALLERID : 1140638059]
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.RateEngine.php - line:179 - uniqueid:1416133571.18 - [rate-engine: Count Total result 2]
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.RateEngine.php - line:344 - uniqueid:1416133571.18 - [CC_asterisk_rate-engine: Count Total result 1]
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.RateEngine.php - line:345 - uniqueid:1416133571.18 - [CC_asterisk_rate-engine: number_trunk 1]
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.RateEngine.php - line:358 - uniqueid:1416133571.18 - [CC_RATE_ENGINE_ALL_CALCULTIMEOUT (47.95781)]
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.RateEngine.php - line:364 - uniqueid:1416133571.18 - [CC_RATE_ENGINE_ALL_CALCULTIMEOUT: k=0 - res_calcultimeout:4494]
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:a2billing.php - line:1566 - uniqueid:1416133571.18 - [CALLBACK]:[RateEngine->answeredtime=26]
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.RateEngine.php - line:1038 - uniqueid:1416133571.18 - :[sessiontime:26 - id_cc_package_offer:-1 - package2apply:]
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback:
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback:
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.RateEngine.php - line:807 - uniqueid:1416133571.18 - [CC_RATE_ENGINE_CALCULCOST: K=0 - CALLDURATION:26 - freetimetocall_used=0 - freetimetocall_left=0]
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.RateEngine.php - line:889 - uniqueid:1416133571.18 - [TEMP - CC_RATE_ENGINE_CALCULCOST: 1. COST: -0.32]:[ (30/60) * 0.64 ]
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.RateEngine.php - line:974 - uniqueid:1416133571.18 - [CC_RATE_ENGINE_CALCULCOST: K=0 - BUYCOST:-0.10833333333333 - SELLING COST:-0.32]
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.RateEngine.php - line:1114 - uniqueid:1416133571.18 - [CC_RATE_ENGINE_UPDATESYSTEM: usedratecard K=0 - (sessiontime=26 :: dialstatus=ANSWERED :: buycost=0.10833333333333 :: cost=-0.32 : signe_cc_call=+: signe=-)]
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.RateEngine.php - line:1174 - uniqueid:1416133571.18 - [CC_asterisk_stop : SQL: DONE : result=1]
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.RateEngine.php - line:1175 - uniqueid:1416133571.18 - [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 ('1416133571.18', 'SIP/BRNT2P1-00000006', '1', '', SUBDATE(CURRENT_TIMESTAMP, INTERVAL 26 SECOND) , '26', '26', '11983146661', 1, now() , '+0.32', '1', '16', '103', '36', '1140638059', '4', '0.10833333333333', NULL, '11983146661', '348' , '', '')]
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.RateEngine.php - line:1199 - uniqueid:1416133571.18 - [CC_asterisk_stop 1.2: SQL: UPDATE cc_card SET credit = credit-0.32 , lastuse = now(), nbused = nbused + 1 WHERE username = '7341621469']
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.RateEngine.php - line:1203 - uniqueid:1416133571.18 - UPDATE cc_trunk SET secondusedreal = secondusedreal + 26 WHERE id_trunk = '36'
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.RateEngine.php - line:1207 - uniqueid:1416133571.18 - UPDATE cc_tariffplan SET secondusedreal = secondusedreal + 26 WHERE id = '16'
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.A2Billing.php - line:780 - uniqueid:1416133571.18 - [CARD STATUS UPDATE]
[Kip-10-0-0-10*CLI> [0K a2billing.php,6,callback: file:Class.A2Billing.php - line:789 - uniqueid:1416133571.18 - [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse = inuse - 1, credit = credit + 0.25 WHERE username = '7341621469']
[Kip-10-0-0-10*CLI> [0K -- <SIP/BRNT2P1-00000006>AGI Script a2billing.php completed, returning 4
[Kip-10-0-0-10*CLI> [0K == Spawn extension (a2billing-callback, 1138231333, 1) exited non-zero on 'SIP/BRNT2P1-00000006'
[Kip-10-0-0-10*CLI> [0K -- Executing [h@a2billing-callback:1] [1;36mHangup[0m("[1;35mSIP/BRNT2P1-00000006[0m", "[1;35m[0m") in new stack == Spawn extension (a2billing-callback, h, 1) exited non-zero on 'SIP/BRNT2P1-00000006'
[Kip-10-0-0-10*CLI>
|