Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Tue Mar 19, 2024 6:16 am
Voice Broadcast System


All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Asterisk 13 callback balance reduces only one leg
PostPosted: Sun Nov 16, 2014 1:52 am 
Offline

Joined: Sun Mar 30, 2008 5:52 pm
Posts: 138
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>
 == Using SIP RTP CoS mark 5

ip-10-0-0-10*CLI>
 -- Called BRNT2P1/999015511983146661

ip-10-0-0-10*CLI>
 -- SIP/BRNT2P1-00000006 is making progress

ip-10-0-0-10*CLI>
 > 0x7f3fa400c030 -- Probation passed - setting RTP source address to 169.132.139.10:21540

ip-10-0-0-10*CLI>
 -- SIP/BRNT2P1-00000006 answered
-- Executing [1138231333@a2billing-callback:1] AGI("SIP/BRNT2P1-00000006", "a2billing.php,6,callback") in new stack

ip-10-0-0-10*CLI>
 -- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php

ip-10-0-0-10*CLI>
 > 0x7f3fa400c030 -- Probation passed - setting RTP source address to 169.132.139.10:21540

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: file:Class.A2Billing.php - line:590 - uniqueid: - A2Billing AGI internal configuration:

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: file:Class.A2Billing.php - line:591 - uniqueid: - Array

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: (

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [callerid_] => 0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [dialcommand_param_call_2did] => |70|HimL(3600000:61000:30000)

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [description] => agi-config

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [asterisk_version] => 1_11

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [answer_call] => 0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [play_audio] => 1

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [say_goodbye] => 0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [play_menulanguage] => 0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [force_language] => br

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [intro_prompt] =>

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [min_credit_2call] =>

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [min_duration_2bill] => 0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [notenoughcredit_cardnumber] => 0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [notenoughcredit_assign_newcardnumber_cid] => 0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [use_dnid] => 1

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [no_auth_dnid] => Array

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: (

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [0] => 2400

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [1] => 2300

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: )

ip-10-0-0-10*CLI>
 a2billing.php,6,callback:

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [number_try] => 1

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [force_callplan_id] =>

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [say_balance_after_auth] => 0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [say_balance_after_call] => 0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [say_rateinitial] => 0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [say_timetocall] => 0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [auto_setcallerid] => 0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [force_callerid] => YES

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [cid_sanitize] => NO

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [cid_enable] => 1

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [cid_askpincode_ifnot_callerid] => 0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [failover_lc_prefix] => 0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [cid_auto_assign_card_to_cid] => 1

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [callerid_authentication_over_cardnumber] => 0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [sip_iax_friends] => 0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [sip_iax_pstn_direct_call_prefix] => 555

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [sip_iax_pstn_direct_call] => 0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [ivr_voucher] => 0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [ivr_voucher_prefix] => 8

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [jump_voucher_if_min_credit] => 0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [dialcommand_param] => |37|HRrL(1800000)

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [dialcommand_param_sipiax_friend] => |35|HiL(3600000:61000:30000)

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [switchdialcommand] => 0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [failover_recursive_limit] => 4

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [maxtime_tocall_negatif_free_route] => 5400

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [send_reminder] => 0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [record_call] => 0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [monitor_formatfile] => gsm

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [agi_force_currency] =>

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [currency_association] => Array

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: (

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [0] => usd:dollars

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [1] => mxn:pesos

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [2] => eur:euros

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [3] => all:credit

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: )

ip-10-0-0-10*CLI>
 a2billing.php,6,callback:

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [local_dialing_addcountryprefix] => 0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [max_call_call_2_did] => 3600

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [file_conf_enter_destination] =>

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [conf_order_menulang] => en:fr:es

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [callback_bill_1stleg_ifcall_notconnected] => 1

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [international_prefixes] => Array

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: (

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [0] => 011

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [1] => 00

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [2] => 09

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [3] => 1
a2billing.php,6,callback: )

ip-10-0-0-10*CLI>
 a2billing.php,6,callback:

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [extracharge_did] => Array

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: (

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [0] => 1800

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [1] => 1900
a2billing.php,6,callback: )

ip-10-0-0-10*CLI>
 a2billing.php,6,callback:

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [extracharge_fee] => Array

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: (

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [0] => 0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [1] => 0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: )

ip-10-0-0-10*CLI>
 a2billing.php,6,callback:

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [extracharge_buyfee] => Array

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: (

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [0] => 0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [1] => 0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: )

ip-10-0-0-10*CLI>
 a2billing.php,6,callback:

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [maxtime_tounlimited_calls] => 5400

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [maxtime_tofree_calls] => 5400

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [callplan_deck_minute_threshold] =>

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [disable_announcement_seconds] => 0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [verbosity_level] => 4

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [logging_level] => 4

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [dial_balance_reservation] => 0.25

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [logger_enable] => 1

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [log_file] => /var/log/a2billing/a2billing.log

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [cid_auto_create_card_len] => 10

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [cid_auto_create_card] => 0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [dialcommand_param_call_2did ] => |30|HL(3600000:61000:30000)

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [currency_association_internal] => Array

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: (

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [usd] => dollars

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [mxn] => pesos

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [eur] => euros

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [all] => credit

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: )

ip-10-0-0-10*CLI>
 a2billing.php,6,callback:

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [file_conf_enter_menulang] => prepaid-menulang

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [ivr_voucher_prefixe] => 8

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [cheat_on_announcement_time] => 0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [busy_timeout] => 1

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [lcr_mode] => 0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: )

ip-10-0-0-10*CLI>
 a2billing.php,6,callback:

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: file:a2billing.php - line:117 - uniqueid: - IDCONFIG : 6

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: file:a2billing.php - line:118 - uniqueid: - MODE : callback

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: file:a2billing.php - line:130 - uniqueid: - AGI Request:

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: Array

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: (

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [agi_request] => a2billing.php

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [agi_channel] => SIP/BRNT2P1-00000006

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [agi_language] => br

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [agi_type] => SIP

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [agi_uniqueid] => 1416133571.18

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [agi_version] => 13.0.0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [agi_callerid] => 1140638059

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [agi_calleridname] => unknown

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [agi_callingpres] => 0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [agi_callingani2] => 0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [agi_callington] => 0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [agi_callingtns] => 0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [agi_dnid] => unknown

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [agi_rdnis] => unknown

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [agi_context] => a2billing-callback

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [agi_extension] => 1138231333

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [agi_priority] => 1

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [agi_enhanced] => 0.0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [agi_accountcode] => 7341621469

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [agi_threadid] => 139909805135616

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [agi_arg_1] => 6

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: [agi_arg_2] => callback
a2billing.php,6,callback: )

ip-10-0-0-10*CLI>
 a2billing.php,6,callback:

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: file:a2billing.php - line:131 - uniqueid: - [INFO : A2Billing - v2.0.16]

ip-10-0-0-10*CLI>
 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

ip-10-0-0-10*CLI>
 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]

ip-10-0-0-10*CLI>
 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]

ip-10-0-0-10*CLI>
 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

ip-10-0-0-10*CLI>
 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]

ip-10-0-0-10*CLI>
 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

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: file:Class.A2Billing.php - line:936 - uniqueid:1416133571.18 - RULES APPLY ON DESTINATION ::> 1138231333

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: file:Class.RateEngine.php - line:97 - uniqueid:1416133571.18 - [CC_asterisk_rate-engine: (1, 1138231333)]

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: file:Class.RateEngine.php - line:118 - uniqueid:1416133571.18 - [CC_asterisk_rate-engine - CALLERID : 1140638059]

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: file:Class.RateEngine.php - line:179 - uniqueid:1416133571.18 - [rate-engine: Count Total result 2]

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: file:Class.RateEngine.php - line:344 - uniqueid:1416133571.18 - [CC_asterisk_rate-engine: Count Total result 1]

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: file:Class.RateEngine.php - line:345 - uniqueid:1416133571.18 - [CC_asterisk_rate-engine: number_trunk 1]

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: file:Class.A2Billing.php - line:1053 - uniqueid:1416133571.18 - OK - RESFINDRATE::> 1

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: file:Class.RateEngine.php - line:358 - uniqueid:1416133571.18 - [CC_RATE_ENGINE_ALL_CALCULTIMEOUT (23.978905)]

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: file:Class.RateEngine.php - line:364 - uniqueid:1416133571.18 - [CC_RATE_ENGINE_ALL_CALCULTIMEOUT: k=0 - res_calcultimeout:14382]

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: file:Class.A2Billing.php - line:1066 - uniqueid:1416133571.18 - RES_ALL_CALCULTIMEOUT ::> 1

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: file:Class.A2Billing.php - line:1974 - uniqueid:1416133571.18 - TIMEOUT::> 14382 : minutes=239 - seconds=42

ip-10-0-0-10*CLI>
 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'.

ip-10-0-0-10*CLI>
 a2billing.php,6,callback:

ip-10-0-0-10*CLI>
 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']

ip-10-0-0-10*CLI>
 -- 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

ip-10-0-0-10*CLI>
 -- SIP/BRNT2P1-00000007 is making progress passing it to SIP/BRNT2P1-00000006

ip-10-0-0-10*CLI>
 > 0x7f3fb0011c10 -- Probation passed - setting RTP source address to 169.132.139.21:22512

ip-10-0-0-10*CLI>
 -- SIP/BRNT2P1-00000007 answered SIP/BRNT2P1-00000006

ip-10-0-0-10*CLI>
 -- Channel SIP/BRNT2P1-00000006 joined 'simple_bridge' basic-bridge <3ce8be82-9c56-4f01-a528-0be5170d96c0>

ip-10-0-0-10*CLI>
 -- Channel SIP/BRNT2P1-00000007 joined 'simple_bridge' basic-bridge <3ce8be82-9c56-4f01-a528-0be5170d96c0>

ip-10-0-0-10*CLI>
 > 0x7f3fb0011c10 -- Probation passed - setting RTP source address to 169.132.139.21:22512

ip-10-0-0-10*CLI>
[Nov 16 08:26:30] WARNING[2067][C-00000006]: chan_sip.c:7349 sip_write: Can't send 10 type frames with SIP write

ip-10-0-0-10*CLI>
[Nov 16 08:26:33] WARNING[2067][C-00000006]: chan_sip.c:7349 sip_write: Can't send 10 type frames with SIP write

ip-10-0-0-10*CLI>
[Nov 16 08:26:35] WARNING[2067][C-00000006]: chan_sip.c:7349 sip_write: Can't send 10 type frames with SIP write

ip-10-0-0-10*CLI>
[Nov 16 08:26:38] WARNING[2067][C-00000006]: chan_sip.c:7349 sip_write: Can't send 10 type frames with SIP write

ip-10-0-0-10*CLI>
[Nov 16 08:26:39] WARNING[2067][C-00000006]: chan_sip.c:7349 sip_write: Can't send 10 type frames with SIP write

ip-10-0-0-10*CLI>
[Nov 16 08:26:39] WARNING[2067][C-00000006]: chan_sip.c:7349 sip_write: Can't send 10 type frames with SIP write

ip-10-0-0-10*CLI>
[Nov 16 08:26:43] WARNING[2067][C-00000006]: chan_sip.c:7349 sip_write: Can't send 10 type frames with SIP write

ip-10-0-0-10*CLI>
[Nov 16 08:26:43] WARNING[2067][C-00000006]: chan_sip.c:7349 sip_write: Can't send 10 type frames with SIP write

ip-10-0-0-10*CLI>
 -- 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]

ip-10-0-0-10*CLI>
 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' , '', '')]

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: file:a2billing.php - line:1192 - uniqueid:1416133571.18 - [CALLBACK]:[a2billing end loop num_try] RateEngine->usedratecard=0

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: file:Class.A2Billing.php - line:780 - uniqueid:1416133571.18 - [CARD STATUS UPDATE]

ip-10-0-0-10*CLI>
 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']

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: file:a2billing.php - line:1539 - uniqueid:1416133571.18 - [CALLBACK 1ST LEG]:[INFO FOR THE 1ST LEG - callback_username=7341621469

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: file:a2billing.php - line:1540 - uniqueid:1416133571.18 - [CALLBACK 1ST LEG]:[TRY : callingcard_ivr_authenticate]

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: file:Class.A2Billing.php - line:2869 - uniqueid:1416133571.18 - - Account code ::> 7341621469

ip-10-0-0-10*CLI>
 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'

ip-10-0-0-10*CLI>
 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]

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: file:Class.A2Billing.php - line:780 - uniqueid:1416133571.18 - [CARD STATUS UPDATE]

ip-10-0-0-10*CLI>
 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']

ip-10-0-0-10*CLI>
 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]

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: file:Class.RateEngine.php - line:97 - uniqueid:1416133571.18 - [CC_asterisk_rate-engine: (1, 11983146661)]

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: file:Class.RateEngine.php - line:118 - uniqueid:1416133571.18 - [CC_asterisk_rate-engine - CALLERID : 1140638059]

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: file:Class.RateEngine.php - line:179 - uniqueid:1416133571.18 - [rate-engine: Count Total result 2]

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: file:Class.RateEngine.php - line:344 - uniqueid:1416133571.18 - [CC_asterisk_rate-engine: Count Total result 1]

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: file:Class.RateEngine.php - line:345 - uniqueid:1416133571.18 - [CC_asterisk_rate-engine: number_trunk 1]

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: file:Class.RateEngine.php - line:358 - uniqueid:1416133571.18 - [CC_RATE_ENGINE_ALL_CALCULTIMEOUT (47.95781)]

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: file:Class.RateEngine.php - line:364 - uniqueid:1416133571.18 - [CC_RATE_ENGINE_ALL_CALCULTIMEOUT: k=0 - res_calcultimeout:4494]

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: file:a2billing.php - line:1566 - uniqueid:1416133571.18 - [CALLBACK]:[RateEngine->answeredtime=26]

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: file:Class.RateEngine.php - line:1038 - uniqueid:1416133571.18 - :[sessiontime:26 - id_cc_package_offer:-1 - package2apply:]

ip-10-0-0-10*CLI>
 a2billing.php,6,callback:

ip-10-0-0-10*CLI>
 a2billing.php,6,callback:

ip-10-0-0-10*CLI>
 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]

ip-10-0-0-10*CLI>
 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 ]

ip-10-0-0-10*CLI>
 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]

ip-10-0-0-10*CLI>
 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=-)]

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: file:Class.RateEngine.php - line:1174 - uniqueid:1416133571.18 - [CC_asterisk_stop : SQL: DONE : result=1]

ip-10-0-0-10*CLI>
 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' , '', '')]

ip-10-0-0-10*CLI>
 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']

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: file:Class.RateEngine.php - line:1203 - uniqueid:1416133571.18 - UPDATE cc_trunk SET secondusedreal = secondusedreal + 26 WHERE id_trunk = '36'

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: file:Class.RateEngine.php - line:1207 - uniqueid:1416133571.18 - UPDATE cc_tariffplan SET secondusedreal = secondusedreal + 26 WHERE id = '16'

ip-10-0-0-10*CLI>
 a2billing.php,6,callback: file:Class.A2Billing.php - line:780 - uniqueid:1416133571.18 - [CARD STATUS UPDATE]

ip-10-0-0-10*CLI>
 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']

ip-10-0-0-10*CLI>
 -- <SIP/BRNT2P1-00000006>AGI Script a2billing.php completed, returning 4

ip-10-0-0-10*CLI>
 == Spawn extension (a2billing-callback, 1138231333, 1) exited non-zero on 'SIP/BRNT2P1-00000006'

ip-10-0-0-10*CLI>
 -- Executing [h@a2billing-callback:1] Hangup("SIP/BRNT2P1-00000006", "") in new stack
== Spawn extension (a2billing-callback, h, 1) exited non-zero on 'SIP/BRNT2P1-00000006'

ip-10-0-0-10*CLI>


Top
 Profile  
 
 Post subject: Re: Asterisk 13 callback balance reduces only one leg
PostPosted: Mon Mar 30, 2015 8:01 pm 
Offline

Joined: Sat Oct 01, 2011 4:41 am
Posts: 50
is sessiontime=0 after the call completes?


Top
 Profile  
 
 Post subject: Re: Asterisk 13 callback balance reduces only one leg
PostPosted: Wed Apr 01, 2015 3:12 am 
Offline

Joined: Sat Oct 01, 2011 4:41 am
Posts: 50
downgrading to asterisk 11 fixed this


Top
 Profile  
 
 Post subject: Re: Asterisk 13 callback balance reduces only one leg
PostPosted: Thu Apr 16, 2015 1:51 am 
Offline

Joined: Sun Mar 30, 2008 5:52 pm
Posts: 138
I also had to go back to version 11. The a2billing staff could help us solve the problem as we are unable to move to version 13 of the asterisk.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 
Voice Broadcast System


All times are UTC


Who is online

Users browsing this forum: No registered users and 7 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group