Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Apr 25, 2024 7:09 pm
Predictive Dialer


All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: [A2Billing 1.7.1]: not charging calls and duration call 30s
PostPosted: Thu Sep 16, 2010 9:08 am 
Offline

Joined: Wed Sep 15, 2010 9:09 am
Posts: 96
Hi all,
I have 2 problems with A2Billing 1.7.1, I think that they are 2 bugs.
First, A2Billing doesn't charge with a call that the caller hang up. The system billing doesn't update customer's balance and also duration 00:00 is displayed on the page "CALL REPORT".

Second, The call in A2Billing has a duration : 30 seconds. After 30 seconds, the call is terminated by Asterisk.
I have tested my system Asterisk (not A2Billing), it does

My system is (clean install) :
TrixBox 2.8.0.4
Asterisk 1.6.0.26
A2Billing 1.7.1

This is my CLI Asterisk :
Code:
== Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
  == Using SIP VRTP TOS bits 136
  == Using SIP VRTP CoS mark 6
    -- Executing [225@from-internal:1] Answer("SIP/2001-00000016", "") in new stack
    -- Executing [225@from-internal:2] Wait("SIP/2001-00000016", "2") in new stack
    -- Executing [225@from-internal:3] AGI("SIP/2001-00000016", "a2billing.php,1") in new stack
    -- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
a2billing.php,1: file:Class.A2Billing.php - line:600 - uniqueid: - A2Billing AGI internal configuration:
a2billing.php,1: file:Class.A2Billing.php - line:601 - uniqueid: - Array
a2billing.php,1: (
a2billing.php,1:     [debug] => 4
a2billing.php,1:     [asterisk_version] => 1_4
a2billing.php,1:     [play_audio] => 1
a2billing.php,1:     [use_dnid] => 0
a2billing.php,1:     [number_try] => 3
a2billing.php,1:     [dialcommand_param_call_2did] => ,60,HiL(%timeout%:61000:30000)
a2billing.php,1:     [description] => agi-config
a2billing.php,1:     [answer_call] => 1
a2billing.php,1:     [say_goodbye] => 0
a2billing.php,1:     [play_menulanguage] => 0
a2billing.php,1:     [force_language] =>
a2billing.php,1:     [intro_prompt] =>
a2billing.php,1:     [min_credit_2call] => 0
a2billing.php,1:     [min_duration_2bill] => 0
a2billing.php,1:     [notenoughcredit_cardnumber] => 0
a2billing.php,1:     [notenoughcredit_assign_newcardnumber_cid] => 0
a2billing.php,1:     [no_auth_dnid] => Array
a2billing.php,1:         (
a2billing.php,1:             [0] => 2400
a2billing.php,1:             [1] => 2300
a2billing.php,1:         )
a2billing.php,1:
a2billing.php,1:     [force_callplan_id] =>
a2billing.php,1:     [say_balance_after_auth] => 1
a2billing.php,1:     [say_balance_after_call] => 0
a2billing.php,1:     [say_rateinitial] => 0
a2billing.php,1:     [say_timetocall] => 1
a2billing.php,1:     [auto_setcallerid] => 1
a2billing.php,1:     [force_callerid] =>
a2billing.php,1:     [cid_sanitize] => 0
a2billing.php,1:     [cid_enable] => 0
a2billing.php,1:     [cid_askpincode_ifnot_callerid] => 1
a2billing.php,1:     [failover_lc_prefix] => 0
a2billing.php,1:     [cid_auto_assign_card_to_cid] => 1
a2billing.php,1:     [callerid_authentication_over_cardnumber] => 0
a2billing.php,1:     [sip_iax_friends] => 0
a2billing.php,1:     [sip_iax_pstn_direct_call_prefix] => 555
a2billing.php,1:     [sip_iax_pstn_direct_call] => 0
a2billing.php,1:     [ivr_voucher] => 0
a2billing.php,1:     [ivr_voucher_prefix] => 8
a2billing.php,1:     [jump_voucher_if_min_credit] => 0
a2billing.php,1:     [dialcommand_param] => ,60,HRrL(%timeout%:61000:30000)
a2billing.php,1:     [dialcommand_param_sipiax_friend] => ,60,HiL(3600000:61000:30000)
a2billing.php,1:     [switchdialcommand] => 0
a2billing.php,1:     [failover_recursive_limit] => 2
a2billing.php,1:     [maxtime_tocall_negatif_free_route] => 5400
a2billing.php,1:     [send_reminder] => 0
a2billing.php,1:     [record_call] => 0
a2billing.php,1:     [monitor_formatfile] => gsm
a2billing.php,1:     [agi_force_currency] =>
a2billing.php,1:     [currency_association] => Array
a2billing.php,1:         (
a2billing.php,1:             [0] => usd:dollars
a2billing.php,1:             [1] => mxn:pesos
a2billing.php,1:             [2] => eur:euros
a2billing.php,1:             [3] => all:credit
a2billing.php,1:         )
a2billing.php,1:
a2billing.php,1:     [local_dialing_addcountryprefix] => 0
a2billing.php,1:     [max_call_call_2_did] => 3600
a2billing.php,1:     [file_conf_enter_destination] => prepaid-enter-dest
a2billing.php,1:     [conf_order_menulang] => en:fr:es
a2billing.php,1:     [callback_bill_1stleg_ifcall_notconnected] => 1
a2billing.php,1:     [international_prefixes] => Array
a2billing.php,1:         (
a2billing.php,1:             [0] => 011
a2billing.php,1:             [1] => 00
a2billing.php,1:             [2] => 09
a2billing.php,1:             [3] => 1
a2billing.php,1:         )
a2billing.php,1:
a2billing.php,1:     [extracharge_did] => Array
a2billing.php,1:         (
a2billing.php,1:             [0] => 1800
a2billing.php,1:             [1] => 1900
a2billing.php,1:         )
a2billing.php,1:
a2billing.php,1:     [extracharge_fee] => Array
a2billing.php,1:         (
a2billing.php,1:             [0] => 0
a2billing.php,1:             [1] => 0
a2billing.php,1:         )
a2billing.php,1:
a2billing.php,1:     [extracharge_buyfee] => Array
a2billing.php,1:         (
a2billing.php,1:             [0] => 0
a2billing.php,1:             [1] => 0
a2billing.php,1:         )
a2billing.php,1:
a2billing.php,1:     [maxtime_tounlimited_calls] => 5400
a2billing.php,1:     [maxtime_tofree_calls] => 5400
a2billing.php,1:     [callplan_deck_minute_threshold] =>
a2billing.php,1:     [disable_announcement_seconds] => 0
a2billing.php,1:     [verbosity_level] => 4
a2billing.php,1:     [logging_level] => 4
a2billing.php,1:     [dial_balance_reservation] => 0.25
a2billing.php,1:     [callerid_update] => 0
a2billing.php,1:     [cid_auto_create_card] => 0
a2billing.php,1:     [cid_auto_create_card_len] => 10
a2billing.php,1:     [cid_auto_create_card_typepaid] => PREPAID
a2billing.php,1:     [cid_auto_create_card_credit] => 0
a2billing.php,1:     [cid_auto_create_card_credit_limit] => 0
a2billing.php,1:     [cid_auto_create_card_tariffgroup] => 1
a2billing.php,1:     [busy_timeout] => 1
a2billing.php,1:     [callback_reduce_balance] => 1
a2billing.php,1:     [ivr_enable_locking_option] => 0
a2billing.php,1:     [ivr_enable_account_information] => 0
a2billing.php,1:     [ivr_enable_ivr_speeddial] => 0
a2billing.php,1:     [play_rate_cents_if_lower_one] => 0
a2billing.php,1:     [logger_enable] => 1
a2billing.php,1:     [log_file] => /var/log/a2billing/a2billing.log
a2billing.php,1:     [dialcommand_param_call_2did ] => |30|HL(3600000:61000:30000)
a2billing.php,1:     [currency_association_internal] => Array
a2billing.php,1:         (
a2billing.php,1:             [usd] => dollars
a2billing.php,1:             [mxn] => pesos
a2billing.php,1:             [eur] => euros
a2billing.php,1:             [all] => credit
a2billing.php,1:         )
a2billing.php,1:
a2billing.php,1:     [file_conf_enter_menulang] => prepaid-menulang
a2billing.php,1:     [ivr_voucher_prefixe] => 8
a2billing.php,1:     [cheat_on_announcement_time] => 0
a2billing.php,1: )
a2billing.php,1:
a2billing.php,1: file:a2billing.php - line:102 - uniqueid: - IDCONFIG : 1
a2billing.php,1: file:a2billing.php - line:103 - uniqueid: - MODE : standard
a2billing.php,1: file:a2billing.php - line:120 - uniqueid: - AGI Request:
a2billing.php,1: Array
a2billing.php,1: (
a2billing.php,1:     [agi_request] => a2billing.php
a2billing.php,1:     [agi_channel] => SIP/2001-00000016
a2billing.php,1:     [agi_language] => en
a2billing.php,1:     [agi_type] => SIP
a2billing.php,1:     [agi_uniqueid] => 1284619932.22
a2billing.php,1:     [agi_version] => 1.6.0.26-FONCORE-r78
a2billing.php,1:     [agi_callerid] => 2001
a2billing.php,1:     [agi_calleridname] => device
a2billing.php,1:     [agi_callingpres] => 0
a2billing.php,1:     [agi_callingani2] => 0
a2billing.php,1:     [agi_callington] => 0
a2billing.php,1:     [agi_callingtns] => 0
a2billing.php,1:     [agi_dnid] => 225
a2billing.php,1:     [agi_rdnis] => unknown
a2billing.php,1:     [agi_context] => from-internal
a2billing.php,1:     [agi_extension] => 225
a2billing.php,1:     [agi_priority] => 3
a2billing.php,1:     [agi_enhanced] => 0.0
a2billing.php,1:     [agi_accountcode] => 9733082931
a2billing.php,1:     [agi_threadid] => -1218004080
a2billing.php,1:     [agi_arg_1] => 1
a2billing.php,1: )
a2billing.php,1:
a2billing.php,1: file:a2billing.php - line:122 - uniqueid: - [INFO : A2Billing - Version 1.7.1 (Larch)]
a2billing.php,1: file:Class.A2Billing.php - line:714 - uniqueid:1284619932.22 -  get_agi_request_parameter = 2001 ; SIP/2001-00000016 ; 1284619932.22 ; 9733082931 ; 225
a2billing.php,1: file:a2billing.php - line:158 - uniqueid:1284619932.22 - [ANSWER CALL]
a2billing.php,1: file:Class.A2Billing.php - line:2582 - uniqueid:1284619932.22 -  - Account code ::> 9733082931
a2billing.php,1: file:Class.A2Billing.php - line:2599 - uniqueid:1284619932.22 -  - 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='9733082931'
a2billing.php,1: file:Class.A2Billing.php - line:2669 - uniqueid:1284619932.22 - [SET CHANNEL(language) en]
a2billing.php,1: file:Class.A2Billing.php - line:2673 - uniqueid:1284619932.22 - [credit=83.20000 :: tariff=1 :: status=1 :: isused=0 :: simultaccess=1 :: typepaid=0 :: creditlimit= :: language=en]
a2billing.php,1: file:Class.A2Billing.php - line:746 - uniqueid:1284619932.22 - [CARD STATUS UPDATE]
a2billing.php,1: file:Class.A2Billing.php - line:755 - uniqueid:1284619932.22 - [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse=inuse+1, credit=credit-0.25 WHERE username='9733082931']
a2billing.php,1: file:Class.A2Billing.php - line:2961 - uniqueid:1284619932.22 - [A2Billing] SAY BALANCE : 83.20000
a2billing.php,1:
a2billing.php,1: file:Class.A2Billing.php - line:1790 - uniqueid:1284619932.22 - [CURRENCY : USD]
a2billing.php,1: file:Class.A2Billing.php - line:1797 - uniqueid:1284619932.22 - [BEFORE: 83.2 SPRINTF : 83.20]
    -- Playing 'prepaid-you-have' (escape_digits=#) (sample_offset 0)
    -- <SIP/2001-00000016> Playing 'digits/80.gsm' (language 'en')
    -- <SIP/2001-00000016> Playing 'digits/3.gsm' (language 'en')
    -- Playing 'dollars' (escape_digits=#) (sample_offset 0)
    -- Playing 'vm-and' (escape_digits=#) (sample_offset 0)
    -- <SIP/2001-00000016> Playing 'digits/20.gsm' (language 'en')
    -- Playing 'prepaid-cents' (escape_digits=#) (sample_offset 0)
a2billing.php,1: file:a2billing.php - line:174 - uniqueid:1284619932.22 - [TRY : callingcard_ivr_authenticate]
a2billing.php,1: file:Class.A2Billing.php - line:2256 - uniqueid:1284619932.22 - [AUTO SetCallerID]
a2billing.php,1: file:Class.A2Billing.php - line:2262 - uniqueid:1284619932.22 - [REQUESTED SetCallerID : 2001]
a2billing.php,1: file:Class.A2Billing.php - line:2274 - uniqueid:1284619932.22 - [EXEC SetCallerID : 2001]
a2billing.php,1: file:a2billing.php - line:189 - uniqueid:1284619932.22 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php,1: [CREDIT : 83.20000][CREDIT MIN_CREDIT_2CALL : 0]
a2billing.php,1: file:a2billing.php - line:392 - uniqueid:1284619932.22 - TARIFF ID -> 1
a2billing.php,1: file:Class.A2Billing.php - line:804 - uniqueid:1284619932.22 - use_dnid:0 && (!in_array:) && len_dnid:(3 || len_exten:3 ) && (try_num:0)
    -- <SIP/2001-00000016> Playing 'prepaid-enter-dest.gsm' (language 'en')
a2billing.php,1: file:Class.A2Billing.php - line:816 - uniqueid:1284619932.22 - RES DTMF : 3001
a2billing.php,1: file:Class.A2Billing.php - line:871 - uniqueid:1284619932.22 - [CALL 2 DID]
a2billing.php,1: file:Class.A2Billing.php - line:880 - uniqueid:1284619932.22 - SELECT cc_did.id, iduser FROM cc_did, cc_card  WHERE cc_card.status=1 and cc_card.id=iduser  and cc_did.activated=1 and did='3001'  AND cc_did.startingdate<= CURRENT_TIMESTAMP AND (cc_did.expirationdate > CURRENT_TIMESTAMP OR cc_did.expirationdate IS NULL OR cc_did.expirationdate = '0000-00-00 00:00:00')
a2billing.php,1: file:Class.A2Billing.php - line:886 - uniqueid:1284619932.22 - DESTINATION ::> 3001
a2billing.php,1: file:Class.A2Billing.php - line:893 - uniqueid:1284619932.22 - RULES APPLY ON DESTINATION ::> 3001
a2billing.php,1: file:Class.A2Billing.php - line:3413 - uniqueid:1284619932.22 - [SAVING DESTINATION FOR REDIAL: SQL: UPDATE cc_card SET redial = '3001' WHERE username='9733082931']:[result: 1]
a2billing.php,1: file:Class.RateEngine.php - line:98 - uniqueid:1284619932.22 - [CC_asterisk_rate-engine: (1, 3001)]
a2billing.php,1: file:Class.RateEngine.php - line:120 - uniqueid:1284619932.22 - [CC_asterisk_rate-engine - CALLERID : 2001]
a2billing.php,1: file:Class.RateEngine.php - line:182 - uniqueid:1284619932.22 - [rate-engine: Count Total result 1]
a2billing.php,1: file:Class.RateEngine.php - line:267 - uniqueid:1284619932.22 - [CC_asterisk_rate-engine: Count Total result 1]
a2billing.php,1: file:Class.RateEngine.php - line:268 - uniqueid:1284619932.22 - [CC_asterisk_rate-engine: number_trunk 1]
a2billing.php,1: file:Class.A2Billing.php - line:1009 - uniqueid:1284619932.22 - OK - RESFINDRATE::> 1
a2billing.php,1: file:Class.RateEngine.php - line:282 - uniqueid:1284619932.22 - [CC_RATE_ENGINE_ALL_CALCULTIMEOUT (83.20000)]
a2billing.php,1: file:Class.RateEngine.php - line:288 - uniqueid:1284619932.22 - [CC_RATE_ENGINE_ALL_CALCULTIMEOUT: k=0 - res_calcultimeout:97440]
a2billing.php,1: file:Class.A2Billing.php - line:1021 - uniqueid:1284619932.22 - RES_ALL_CALCULTIMEOUT ::> 1
a2billing.php,1: file:Class.A2Billing.php - line:1720 - uniqueid:1284619932.22 - TIMEOUT::> 97440 : minutes=1624 - seconds=0
    -- Playing 'prepaid-you-have' (escape_digits=#) (sample_offset 0)
    -- <SIP/2001-00000016> Playing 'digits/1.gsm' (language 'en')
    -- <SIP/2001-00000016> Playing 'digits/thousand.gsm' (language 'en')
    -- <SIP/2001-00000016> Playing 'digits/6.gsm' (language 'en')
    -- <SIP/2001-00000016> Playing 'digits/hundred.gsm' (language 'en')
    -- <SIP/2001-00000016> Playing 'digits/20.gsm' (language 'en')
    -- <SIP/2001-00000016> Playing 'digits/4.gsm' (language 'en')
    -- Playing 'prepaid-minutes' (escape_digits=#) (sample_offset 0)
a2billing.php,1: file:a2billing.php - line:568 - uniqueid:1284619932.22 - ANSWER fct callingcard_ivr authorize:> 1
a2billing.php,1: file:Class.RateEngine.php - line:1234 - uniqueid:1284619932.22 - app_callingcard: Dialing 'SIP/106-peer/3001,60,HRrL(97440000:61000:30000)' with timeout of '97440'.
a2billing.php,1:
a2billing.php,1: file:Class.RateEngine.php - line:1253 - uniqueid:1284619932.22 - app_callingcard: CIDGROUPID='-1' OUTBOUND CID SELECTED IS '0'.
a2billing.php,1: file:Class.RateEngine.php - line:1148 - uniqueid:1284619932.22 - [TRUNK STATUS UPDATE : UPDATE cc_trunk SET inuse=inuse+1 WHERE id_trunk='2']
    -- AGI Script Executing Application: (DIAL) Options: (SIP/106-peer/3001,60,HRrL(97440000:61000:30000))
    -- Limit Data for this call:
       > timelimit      = 97440000
       > play_warning   = 61000
       > play_to_caller = yes
       > play_to_callee = no
       > warning_freq   = 30000
       > start_sound    =
       > warning_sound  = timeleft
       > end_sound      =
  == Using SIP RTP TOS bits 184
  == Using SIP RTP CoS mark 5
  == Using SIP VRTP TOS bits 136
  == Using SIP VRTP CoS mark 6
    -- Called 106-peer/3001
    -- SIP/106-peer-00000017 is ringing
    -- SIP/106-peer-00000017 is ringing
    -- SIP/106-peer-00000017 answered SIP/2001-00000016
    -- Executing [h@from-internal:1] Macro("SIP/2001-00000016", "hangupcall") in new stack
    -- Executing [s@macro-hangupcall:1] GotoIf("SIP/2001-00000016", "1?skiprg") in new stack
    -- Goto (macro-hangupcall,s,4)
    -- Executing [s@macro-hangupcall:4] GotoIf("SIP/2001-00000016", "1?skipblkvm") in new stack
    -- Goto (macro-hangupcall,s,7)
    -- Executing [s@macro-hangupcall:7] GotoIf("SIP/2001-00000016", "1?theend") in new stack
    -- Goto (macro-hangupcall,s,9)
    -- Executing [s@macro-hangupcall:9] Hangup("SIP/2001-00000016", "") in new stack
  == Spawn extension (macro-hangupcall, s, 9) exited non-zero on 'SIP/2001-00000016' in macro 'hangupcall'
  == Spawn extension (from-internal, 225, 3) exited non-zero on 'SIP/2001-00000016'

Anyone help me to solve this problem ?
Thank in advance for all helps!
B.R
T.Q.Tuan


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


All times are UTC


Who is online

Users browsing this forum: No registered users and 44 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:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group