Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Thu Apr 18, 2024 7:49 am
VoIP Billing solution


All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Session= 0 A2billing not Charging customers
PostPosted: Sun Mar 29, 2015 2:00 am 
Offline

Joined: Sat Oct 01, 2011 4:41 am
Posts: 50
I been searching lot of forums and found no fix
but like many others my a2billing are not billing my customers. session time = 0

Yes i Do have the right php modules, and I am using DeadAgi instead of agi


from looking at the database it happens when the (starttime = stoptime | sessiontime:0)
i see some entys that when start and stop are different session is correct. i dont think a2billing is getting it from asterisk seems its using the mysql time and sometimes i think it adds it at the end of the call, making start and the stop the same.
SUBDATE(CURRENT_TIMESTAMP, INTERVAL 0 SECOND)

Some one pls help






-- Executing [18775743418@a2billing-all-callback:1] GotoIf("SIP/Voip-Innovations-IN-00000008", "0?:clean99") in new stack
-- Goto (a2billing-all-callback,18775743418,3)
-- Executing [18775743418@a2billing-all-callback:3] Set("SIP/Voip-Innovations-IN-00000008", "CALLERID(num)=2140488888024") in new stack
-- Executing [18775743418@a2billing-all-callback:4] GotoIf("SIP/Voip-Innovations-IN-00000008", "0?clean:") in new stack
-- Executing [18775743418@a2billing-all-callback:5] Set("SIP/Voip-Innovations-IN-00000008", "CALLERID(num)=404488888824") in new stack
-- Executing [18775743418@a2billing-all-callback:6] GotoIf("SIP/Voip-Innovations-IN-00000008", "0?:clean") in new stack
-- Goto (a2billing-all-callback,18775743418,7)
-- Executing [18775743418@a2billing-all-callback:7] Set("SIP/Voip-Innovations-IN-00000008", "callerid=40449888824") in new stack
-- Executing [18775743418@a2billing-all-callback:8] Verbose("SIP/Voip-Innovations-IN-00000008", "0, getting callerid info 4044905024 ") in new stack
getting callerid info 4044905024
-- Executing [18775743418@a2billing-all-callback:9] AGI("SIP/Voip-Innovations-IN-00000008", "googletts.agi,"Welcome to Beat My Price! Please Press 1 For Cheap Call Back Calling or Press 2 for more expensive Direct calling.",en,any") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/googletts.agi
> 0x1e6f180 -- Probation passed - setting RTP source address to 4.55.39.198:21822
-- <SIP/Voip-Innovations-IN-00000008> Playing '/tmp/9484a5013d9518c4687bdec0f23f2b79.slin' (escape_digits=0123456789#*) (sample_offset 0) (language 'en')
-- <SIP/Voip-Innovations-IN-00000008> Playing '/tmp/2406277ba79e9e7759208735da85ffeb.slin' (escape_digits=0123456789#*) (sample_offset 0) (language 'en')
-- Remote UNIX connection disconnected
-- <SIP/Voip-Innovations-IN-00000008>AGI Script googletts.agi completed, returning 0
-- Executing [18775743418@a2billing-all-callback:10] WaitExten("SIP/Voip-Innovations-IN-00000008", "") in new stack
-- Executing [1@a2billing-all-callback:1] AGI("SIP/Voip-Innovations-IN-00000008", "googletts.agi,"Hang up. We Are Calling you Back ",en") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/googletts.agi
-- <SIP/Voip-Innovations-IN-00000008> Playing '/tmp/bbb6886b79725852005c4b0e424e6986.slin' (escape_digits=) (sample_offset 0) (language 'en')
[2015-03-28 21:40:16] NOTICE[19527]: chan_sip.c:27866 handle_request_register: Registration from '"1015" <sip:[email protected]:5060>' failed for '212.129.61.191:5116' - Wrong password
-- <SIP/Voip-Innovations-IN-00000008>AGI Script googletts.agi completed, returning 0
-- Executing [1@a2billing-all-callback:2] Wait("SIP/Voip-Innovations-IN-00000008", "2") in new stack
-- Executing [1@a2billing-all-callback:3] Hangup("SIP/Voip-Innovations-IN-00000008", "") in new stack
== Spawn extension (a2billing-all-callback, 1, 3) exited non-zero on 'SIP/Voip-Innovations-IN-00000008'
-- Executing [h@a2billing-all-callback:1] Set("SIP/Voip-Innovations-IN-00000008", "callerid=4044905024") in new stack
-- Executing [h@a2billing-all-callback:2] Set("SIP/Voip-Innovations-IN-00000008", "CALLERID(name)=Beat My Price") in new stack
-- Executing [h@a2billing-all-callback:3] Verbose("SIP/Voip-Innovations-IN-00000008", "0, getting callerid info 40449888024 ") in new stack
getting callerid info 4044905024
-- Executing [h@a2billing-all-callback:4] Originate("SIP/Voip-Innovations-IN-00000008", "SIP/Voip-Innovations-out/488888824,exten,a2billing-callingcard,1000,1") in new stack
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called Voip-Innovations-out/4044905024
> 0x7f32ec03af90 -- Probation passed - setting RTP source address to 207.223.70.132:49432
> 0x7f32ec03af90 -- Probation passed - setting RTP source address to 207.223.70.132:49432
-- SIP/Voip-Innovations-out-00000009 is making progress
> 0x7f32ec03af90 -- Probation passed - setting RTP source address to 207.223.70.132:49432
-- SIP/Voip-Innovations-out-00000009 is making progress
-- SIP/Voip-Innovations-out-00000009 answered
-- Executing [1000@a2billing-callingcard:1] NoOp("SIP/Voip-Innovations-out-00000009", "A2Billing Start") in new stack
-- Executing [1000@a2billing-callingcard:2] Set("SIP/Voip-Innovations-out-00000009", "TIMEOUT(digit)=5") in new stack
-- Executing [h@a2billing-all-callback:5] Goto("SIP/Voip-Innovations-IN-00000008", "a2billing-callingcard,1000,1") in new stack
-- Goto (a2billing-callingcard,1000,1)
-- Executing [1000@a2billing-callingcard:1] NoOp("SIP/Voip-Innovations-IN-00000008", "A2Billing Start") in new stack
-- Executing [1000@a2billing-callingcard:2] Set("SIP/Voip-Innovations-IN-00000008", "TIMEOUT(digit)=5") in new stack
-- Digit timeout set to 5.000
-- Executing [1000@a2billing-callingcard:3] Verbose("SIP/Voip-Innovations-IN-00000008", "0, getting callerid info 404888824 ") in new stack
getting callerid info 4044905024
-- Executing [1000@a2billing-callingcard:4] Verbose("SIP/Voip-Innovations-IN-00000008", "0, getting callerid info 408888824 ") in new stack
getting callerid info 4044905024
-- Executing [1000@a2billing-callingcard:5] SIPDtmfMode("SIP/Voip-Innovations-IN-00000008", "RFC2833") in new stack
-- Executing [1000@a2billing-callingcard:6] AGI("SIP/Voip-Innovations-IN-00000008", "googletts.agi,"Hi welcome back. Please Press 1 to make a call. Press 2 to check your Voicemail. Press 3 to enter our Party Line. Press 4 to get information about your account. 5 for Free 411 Calls. Press 6 Frequent Asked Questions and Information about additional services. Press 7 if you paid already and have a voucher to add to your Calling Card. Press 9 To contact Support ",en,any") in new stack
-- Digit timeout set to 5.000
-- Executing [1000@a2billing-callingcard:3] Verbose("SIP/Voip-Innovations-out-00000009", "0, getting callerid info ") in new stack
getting callerid info
-- Executing [1000@a2billing-callingcard:4] Verbose("SIP/Voip-Innovations-out-00000009", "0, getting callerid info ") in new stack
getting callerid info
-- Executing [1000@a2billing-callingcard:5] SIPDtmfMode("SIP/Voip-Innovations-out-00000009", "RFC2833") in new stack
-- Executing [1000@a2billing-callingcard:6] AGI("SIP/Voip-Innovations-out-00000009", "googletts.agi,"Hi welcome back. Please Press 1 to make a call. Press 2 to check your Voicemail. Press 3 to enter our Party Line. Press 4 to get information about your account. 5 for Free 411 Calls. Press 6 Frequent Asked Questions and Information about additional services. Press 7 if you paid already and have a voucher to add to your Calling Card. Press 9 To contact Support ",en,any") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/googletts.agi
-- Launched AGI Script /var/lib/asterisk/agi-bin/googletts.agi
-- <SIP/Voip-Innovations-out-00000009> Playing '/tmp/98178a9a622e69c786f0fb2c976a8137.slin' (escape_digits=0123456789#*) (sample_offset 0) (language 'en')
-- <SIP/Voip-Innovations-IN-00000008>AGI Script googletts.agi completed, returning 0
-- Executing [1000@a2billing-callingcard:7] WaitExten("SIP/Voip-Innovations-IN-00000008", "") in new stack
== Spawn extension (a2billing-callingcard, 1000, 7) exited non-zero on 'SIP/Voip-Innovations-IN-00000008'
-- <SIP/Voip-Innovations-out-00000009> Playing '/tmp/61dc746527aada4a5e8834d65f720932.slin' (escape_digits=0123456789#*) (sample_offset 0) (language 'en')
-- <SIP/Voip-Innovations-out-00000009>AGI Script googletts.agi completed, returning 0
-- Executing [1@a2billing-callingcard:1] Wait("SIP/Voip-Innovations-out-00000009", "2") in new stack
-- Executing [1@a2billing-callingcard:2] DeadAGI("SIP/Voip-Innovations-out-00000009", "a2billing.php,1") in new stack
[2015-03-28 21:40:33] WARNING[23005][C-00000009]: res_agi.c:4221 deadagi_exec: DeadAGI has been deprecated, please use AGI in all cases!
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
a2billing.php,1: file:Class.A2Billing.php - line:592 - uniqueid: - A2Billing AGI internal configuration:
a2billing.php,1: file:Class.A2Billing.php - line:593 - uniqueid: - Array
a2billing.php,1: (
a2billing.php,1: [dialcommand_param_call_2did] => ,60,HiL(%timeout%:61000:30000)
a2billing.php,1: [description] => agi-config
a2billing.php,1: [asterisk_version] => 1_11
a2billing.php,1: [answer_call] => 0
a2billing.php,1: [play_audio] => 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: [use_dnid] => 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: [number_try] => 3
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] => 0
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] => 1
a2billing.php,1: [cid_auto_assign_card_to_cid] => 0
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,HgL(%timeout%:61000:30000)
a2billing.php,1: [dialcommand_param_sipiax_friend] => ,60,gHiL(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] => 1
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] => 11
a2billing.php,1: [1] => 011
a2billing.php,1: [2] => 00
a2billing.php,1: [3] => 09
a2billing.php,1: [4] => 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: [currency_cents_association] => Array
a2billing.php,1: (
a2billing.php,1: [0] => usd:prepaid-cents
a2billing.php,1: [1] => eur:prepaid-cents
a2billing.php,1: [2] => gbp:prepaid-pence
a2billing.php,1: [3] => all:credit
a2billing.php,1: )
a2billing.php,1:
a2billing.php,1: [default_accountcode] =>
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] => 1
a2billing.php,1: [play_rate_cents_if_lower_one] => 0
a2billing.php,1: [callback_beep_to_enter_destination] => 0
a2billing.php,1: [cid_prompt_callback_confirm_phonenumber] => 0
a2billing.php,1: [lcr_mode] => 0
a2billing.php,1: [default_accountcode_all] => 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: [currency_cents_association_internal] => Array
a2billing.php,1: (
a2billing.php,1: [usd] => prepaid-cents
a2billing.php,1: [eur] => prepaid-cents
a2billing.php,1: [gbp] => prepaid-pence
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:117 - uniqueid: - IDCONFIG : 1
a2billing.php,1: file:a2billing.php - line:118 - uniqueid: - MODE : standard
a2billing.php,1: file:a2billing.php - line:130 - uniqueid: - AGI Request:
a2billing.php,1: Array
a2billing.php,1: (
a2billing.php,1: [agi_request] => a2billing.php
a2billing.php,1: [agi_channel] => SIP/Voip-Innovations-out-00000009
a2billing.php,1: [agi_language] => en
a2billing.php,1: [agi_type] => SIP
a2billing.php,1: [agi_uniqueid] => 1427593219.67
a2billing.php,1: [agi_version] => 13.2.0
a2billing.php,1: [agi_callerid] => unknown
a2billing.php,1: [agi_calleridname] => unknown
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] => unknown
a2billing.php,1: [agi_rdnis] => unknown
a2billing.php,1: [agi_context] => a2billing-callingcard
a2billing.php,1: [agi_extension] => 1
a2billing.php,1: [agi_priority] => 2
a2billing.php,1: [agi_enhanced] => 0.0
a2billing.php,1: [agi_accountcode] =>
a2billing.php,1: [agi_threadid] => 139855944013568
a2billing.php,1: [agi_arg_1] => 1
a2billing.php,1: )
a2billing.php,1:
a2billing.php,1: file:a2billing.php - line:131 - uniqueid: - [INFO : A2Billing - v2.1.0]
a2billing.php,1: file:Class.A2Billing.php - line:755 - uniqueid:1427593219.67 - get_agi_request_parameter = unknown ; ; 1427593219.67 ; ; 1
a2billing.php,1: file:a2billing.php - line:169 - uniqueid:1427593219.67 - [NO ANSWER CALL]
a2billing.php,1: file:Class.A2Billing.php - line:2876 - uniqueid:1427593219.67 - - Account code ::>
a2billing.php,1: file:Class.A2Billing.php - line:3058 - uniqueid:1427593219.67 - Requesting DTMF, CARDNUMBER_LENGTH_MAX 20
-- <SIP/Voip-Innovations-out-00000009> Playing 'prepaid-enter-pin-number.gsm' (language 'en')
a2billing.php,1: file:Class.A2Billing.php - line:3060 - uniqueid:1427593219.67 - RES DTMF : 25292
a2billing.php,1: file:Class.A2Billing.php - line:3064 - uniqueid:1427593219.67 - CARDNUMBER ::> 25292
a2billing.php,1: file:Class.A2Billing.php - line:3089 - uniqueid:1427593219.67 - Array
a2billing.php,1: (
a2billing.php,1: [0] => Array
a2billing.php,1: (
a2billing.php,1: [0] => 7.88782
a2billing.php,1: [credit] => 7.88782
a2billing.php,1: [1] => 10
a2billing.php,1: [tariff] => 10
a2billing.php,1: [2] => t
a2billing.php,1: [activated] => t
a2billing.php,1: [3] => 2
a2billing.php,1: [inuse] => 2
a2billing.php,1: [4] => 1
a2billing.php,1: [simultaccess] => 1
a2billing.php,1: [5] => 0
a2billing.php,1: [typepaid] => 0
a2billing.php,1: [6] =>
a2billing.php,1: [creditlimit] =>
a2billing.php,1: [7] => en
a2billing.php,1: [language] => en
a2billing.php,1: [8] => 0
a2billing.php,1: [removeinterprefix] => 0
a2billing.php,1: [9] => 4044905024
a2billing.php,1: [redial] => 4044905024
a2billing.php,1: [10] => 0
a2billing.php,1: [enableexpire] => 0
a2billing.php,1: [11] => 1742122765
a2billing.php,1: [UNIX_TIMESTAMP(expirationdate)] => 1742122765
a2billing.php,1: [12] => 0
a2billing.php,1: [expiredays] => 0
a2billing.php,1: [13] => 35
a2billing.php,1: [nbused] => 35
a2billing.php,1: [14] => 1426521265
a2billing.php,1: [UNIX_TIMESTAMP(firstusedate)] => 1426521265
a2billing.php,1: [15] => 1426518103
a2billing.php,1: [UNIX_TIMESTAMP(cc_card.creationdate)] => 1426518103
a2billing.php,1: [16] => USD
a2billing.php,1: [currency] => USD
a2billing.php,1: [17] => Quarles
a2billing.php,1: [lastname] => Quarles
a2billing.php,1: [18] => Alvin
a2billing.php,1: [firstname] => Alvin
a2billing.php,1: [19] =>
a2billing.php,1: [email] =>
a2billing.php,1: [20] => 722572mch73r5k006501
a2billing.php,1: [uipass] => 722572mch73r5k006501
a2billing.php,1: [21] => 17
a2billing.php,1: [id] => 17
a2billing.php,1: [22] => -1
a2billing.php,1: [id_campaign] => -1
a2billing.php,1: [23] => 17
a2billing.php,1: [24] => 216189380720855
a2billing.php,1: [useralias] => 216189380720855
a2billing.php,1: [25] => 1
a2billing.php,1: [status] => 1
a2billing.php,1: [26] => 0
a2billing.php,1: [voicemail_permitted] => 0
a2billing.php,1: [27] => 0
a2billing.php,1: [voicemail_activated] => 0
a2billing.php,1: [28] => 0
a2billing.php,1: [restriction] => 0
a2billing.php,1: [29] => 1
a2billing.php,1: [countryprefix] => 1
a2billing.php,1: )
a2billing.php,1:
a2billing.php,1: )
a2billing.php,1:
a2billing.php,1: file:Class.A2Billing.php - line:3158 - uniqueid:1427593219.67 - [SET CHANNEL(language) en]
a2billing.php,1: file:Class.A2Billing.php - line:787 - uniqueid:1427593219.67 - [CARD STATUS UPDATE]
a2billing.php,1: file:Class.A2Billing.php - line:796 - uniqueid:1427593219.67 - [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse = inuse + 1, credit = credit - 0.25 WHERE username = '25292']
a2billing.php,1: file:Class.A2Billing.php - line:3255 - uniqueid:1427593219.67 - [A2Billing] SAY BALANCE : 7.88782
a2billing.php,1:
a2billing.php,1: file:Class.A2Billing.php - line:2052 - uniqueid:1427593219.67 - [CURRENCY : USD]
a2billing.php,1: file:Class.A2Billing.php - line:2062 - uniqueid:1427593219.67 - [BEFORE: 7.88782 SPRINTF : 7.89]
-- <SIP/Voip-Innovations-out-00000009> Playing 'prepaid-you-have.gsm' (escape_digits=#) (sample_offset 0) (language 'en')
-- <SIP/Voip-Innovations-out-00000009> Playing 'digits/7.gsm' (language 'en')
-- <SIP/Voip-Innovations-out-00000009> Playing 'dollars.gsm' (escape_digits=#) (sample_offset 0) (language 'en')
-- <SIP/Voip-Innovations-out-00000009> Playing 'vm-and.gsm' (escape_digits=#) (sample_offset 0) (language 'en')
-- <SIP/Voip-Innovations-out-00000009> Playing 'digits/80.gsm' (language 'en')
-- <SIP/Voip-Innovations-out-00000009> Playing 'digits/9.gsm' (language 'en')
-- <SIP/Voip-Innovations-out-00000009> Playing 'prepaid-cents.gsm' (escape_digits=#) (sample_offset 0) (language 'en')
a2billing.php,1: file:a2billing.php - line:181 - uniqueid:1427593219.67 - [TRY : callingcard_ivr_authenticate]
a2billing.php,1: file:Class.A2Billing.php - line:2535 - uniqueid:1427593219.67 - [AUTO SetCallerID]
a2billing.php,1: file:a2billing.php - line:194 - uniqueid:1427593219.67 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php,1: [CREDIT : 7.88782][CREDIT MIN_CREDIT_2CALL : 0]
a2billing.php,1: file:a2billing.php - line:382 - uniqueid:1427593219.67 - TARIFF ID->10
a2billing.php,1: file:a2billing.php - line:431 - uniqueid:1427593219.67 - [IVR SPEED DIAL]
-- <SIP/Voip-Innovations-out-00000009> Playing 'prepaid-press9-new-speeddial.gsm' (language 'en')
a2billing.php,1: file:Class.A2Billing.php - line:846 - uniqueid:1427593219.67 - use_dnid:0 && (!in_array:) && len_dnid:(7 || len_exten:1 ) && (try_num:0)
-- <SIP/Voip-Innovations-out-00000009> Playing 'prepaid-enter-dest.gsm' (language 'en')
a2billing.php,1: file:Class.A2Billing.php - line:863 - uniqueid:1427593219.67 - RES DTMF : 4044905024
a2billing.php,1: file:Class.A2Billing.php - line:921 - uniqueid:1427593219.67 - [CALL 2 DID]
a2billing.php,1: file:Class.A2Billing.php - line:930 - uniqueid:1427593219.67 - 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 = '4044905024' 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:936 - uniqueid:1427593219.67 - DESTINATION ::> 4044905024
a2billing.php,1: file:Class.A2Billing.php - line:943 - uniqueid:1427593219.67 - RULES APPLY ON DESTINATION ::> 4044905024
a2billing.php,1: file:Class.A2Billing.php - line:3717 - uniqueid:1427593219.67 - [SAVING DESTINATION FOR REDIAL: SQL: UPDATE cc_card SET redial = '4044905024' WHERE username = '25292']:[result: 1]
a2billing.php,1: file:Class.RateEngine.php - line:97 - uniqueid:1427593219.67 - [CC_asterisk_rate-engine: (10, 4044905024)]
a2billing.php,1: file:Class.RateEngine.php - line:118 - uniqueid:1427593219.67 - [CC_asterisk_rate-engine - CALLERID : unknown]
a2billing.php,1: file:Class.RateEngine.php - line:179 - uniqueid:1427593219.67 - [rate-engine: Count Total result 4]
a2billing.php,1: file:Class.RateEngine.php - line:344 - uniqueid:1427593219.67 - [CC_asterisk_rate-engine: Count Total result 1]
a2billing.php,1: file:Class.RateEngine.php - line:345 - uniqueid:1427593219.67 - [CC_asterisk_rate-engine: number_trunk 1]
a2billing.php,1: file:Class.A2Billing.php - line:1060 - uniqueid:1427593219.67 - OK - RESFINDRATE::> 1
a2billing.php,1: file:Class.RateEngine.php - line:358 - uniqueid:1427593219.67 - [CC_RATE_ENGINE_ALL_CALCULTIMEOUT (7.88782)]
a2billing.php,1: file:Class.RateEngine.php - line:364 - uniqueid:1427593219.67 - [CC_RATE_ENGINE_ALL_CALCULTIMEOUT: k=0 - res_calcultimeout:23640]
a2billing.php,1: file:Class.A2Billing.php - line:1073 - uniqueid:1427593219.67 - RES_ALL_CALCULTIMEOUT ::> 1
a2billing.php,1: file:Class.A2Billing.php - line:1981 - uniqueid:1427593219.67 - TIMEOUT::> 23640 : minutes=394 - seconds=0
-- <SIP/Voip-Innovations-out-00000009> Playing 'prepaid-you-have.gsm' (escape_digits=#) (sample_offset 0) (language 'en')
-- <SIP/Voip-Innovations-out-00000009> Playing 'digits/3.gsm' (language 'en')
-- <SIP/Voip-Innovations-out-00000009> Playing 'digits/hundred.gsm' (language 'en')
-- <SIP/Voip-Innovations-out-00000009> Playing 'digits/90.gsm' (language 'en')
-- <SIP/Voip-Innovations-out-00000009> Playing 'digits/4.gsm' (language 'en')
-- <SIP/Voip-Innovations-out-00000009> Playing 'prepaid-minutes.gsm' (escape_digits=#) (sample_offset 0) (language 'en')
a2billing.php,1: file:a2billing.php - line:560 - uniqueid:1427593219.67 - ANSWER fct callingcard_ivr authorize:> 1
a2billing.php,1: file:Class.RateEngine.php - line:1307 - uniqueid:1427593219.67 - app_callingcard: Dialing 'SIP/Voip-Innovations-out/14044905024,60,HgL(23640000:61000:30000)' with timeout of '23640'.
a2billing.php,1:
a2billing.php,1: file:Class.RateEngine.php - line:1327 - uniqueid:1427593219.67 - app_callingcard: CIDGROUPID='-1' OUTBOUND CID SELECTED IS '0'.
a2billing.php,1: file:Class.RateEngine.php - line:1223 - uniqueid:1427593219.67 - [TRUNK STATUS UPDATE : UPDATE cc_trunk SET inuse = inuse + 1 WHERE id_trunk = '2']
-- AGI Script Executing Application: (DIAL) Options: (SIP/Voip-Innovations-out/14044905024,60,HgL(23640000:61000:30000))
> Limit Data for this call:
> timelimit = 23640000 ms (23640.000 s)
> play_warning = 61000 ms (61.000 s)
> play_to_caller = yes
> play_to_callee = no
> warning_freq = 30000 ms (30.000 s)
> start_sound =
> warning_sound = timeleft
> end_sound =
== Using SIP RTP TOS bits 184
== Using SIP RTP CoS mark 5
-- Called SIP/Voip-Innovations-out/14044905024
> 0x7f3300006a70 -- Probation passed - setting RTP source address to 207.223.70.133:30116
> 0x7f3300006a70 -- Probation passed - setting RTP source address to 207.223.70.133:30116
-- SIP/Voip-Innovations-out-0000000a is making progress passing it to SIP/Voip-Innovations-out-00000009
> 0x7f3300006a70 -- Probation passed - setting RTP source address to 207.223.70.133:30116
-- SIP/Voip-Innovations-out-0000000a is making progress passing it to SIP/Voip-Innovations-out-00000009
-- SIP/Voip-Innovations-out-0000000a answered SIP/Voip-Innovations-out-00000009
-- Channel SIP/Voip-Innovations-out-00000009 joined 'simple_bridge' basic-bridge <b9a2f625-a516-40ab-b634-9b726712ca89>
-- Channel SIP/Voip-Innovations-out-0000000a joined 'simple_bridge' basic-bridge <b9a2f625-a516-40ab-b634-9b726712ca89>
-- Channel SIP/Voip-Innovations-out-0000000a left 'simple_bridge' basic-bridge <b9a2f625-a516-40ab-b634-9b726712ca89>
-- Channel SIP/Voip-Innovations-out-00000009 left 'simple_bridge' basic-bridge <b9a2f625-a516-40ab-b634-9b726712ca89>
a2billing.php,1: file:Class.RateEngine.php - line:1336 - uniqueid:1427593219.67 - DIAL SIP/Voip-Innovations-out/14044905024,60,HgL(23640000:61000:30000)
a2billing.php,1: file:Class.RateEngine.php - line:1223 - uniqueid:1427593219.67 - [TRUNK STATUS UPDATE : UPDATE cc_trunk SET inuse = inuse - 1 WHERE id_trunk = '2']
a2billing.php,1: file:Class.RateEngine.php - line:1486 - uniqueid:1427593219.67 - -> dialstatus : ANSWER, answered time is 0
a2billing.php,1:
a2billing.php,1: file:Class.RateEngine.php - line:1490 - uniqueid:1427593219.67 - [USEDRATECARD=0]
a2billing.php,1: file:Class.RateEngine.php - line:1038 - uniqueid:1427593219.67 - :[sessiontime:0 - id_cc_package_offer:-1 - package2apply:]
a2billing.php,1:
a2billing.php,1:
a2billing.php,1: file:Class.RateEngine.php - line:1114 - uniqueid:1427593219.67 - [CC_RATE_ENGINE_UPDATESYSTEM: usedratecard K=0 - (sessiontime=0 :: dialstatus=ANSWER :: buycost=0 :: cost= : signe_cc_call=-: signe=+)]
a2billing.php,1: file:Class.RateEngine.php - line:1174 - uniqueid:1427593219.67 - [CC_asterisk_stop : SQL: DONE : result=1]
a2billing.php,1: file:Class.RateEngine.php - line:1175 - uniqueid:1427593219.67 - [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 ('1427593219.67', '', '17', '', SUBDATE(CURRENT_TIMESTAMP, INTERVAL 0 SECOND) , '0', '0', 'changed', 1, now() , '-0', '10', '9', '1284570', '2', 'unknown', '0', '0', NULL, 'unknown', '0' , '', '')]
a2billing.php,1: file:a2billing.php - line:576 - uniqueid:1427593219.67 - [a2billing account stop]
a2billing.php,1: file:a2billing.php - line:194 - uniqueid:1427593219.67 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php,1: [CREDIT : 7.88782][CREDIT MIN_CREDIT_2CALL : 0]
a2billing.php,1: file:a2billing.php - line:382 - uniqueid:2427593219.67 - TARIFF ID->10
a2billing.php,1: file:a2billing.php - line:431 - uniqueid:2427593219.67 - [IVR SPEED DIAL]
-- <SIP/Voip-Innovations-out-00000009> Playing 'prepaid-press9-new-speeddial.gsm' (language 'en')
a2billing.php,1: file:Class.A2Billing.php - line:846 - uniqueid:2427593219.67 - use_dnid:0 && (!in_array:) && len_dnid:(7 || len_exten:1 ) && (try_num:1)
-- <SIP/Voip-Innovations-out-00000009> Playing 'prepaid-enter-dest.gsm' (language 'en')
a2billing.php,1: file:Class.A2Billing.php - line:863 - uniqueid:2427593219.67 - RES DTMF :
a2billing.php,1: file:Class.A2Billing.php - line:921 - uniqueid:2427593219.67 - [CALL 2 DID]
a2billing.php,1: file:Class.A2Billing.php - line:930 - uniqueid:2427593219.67 - 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 = '' 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:936 - uniqueid:2427593219.67 - DESTINATION ::>
a2billing.php,1: file:Class.A2Billing.php - line:943 - uniqueid:2427593219.67 - RULES APPLY ON DESTINATION ::>
a2billing.php,1: file:a2billing.php - line:560 - uniqueid:2427593219.67 - ANSWER fct callingcard_ivr authorize:> -1
a2billing.php,1: file:a2billing.php - line:194 - uniqueid:2427593219.67 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php,1: [CREDIT : 7.88782][CREDIT MIN_CREDIT_2CALL : 0]
a2billing.php,1: file:a2billing.php - line:382 - uniqueid:3427593219.67 - TARIFF ID->10
a2billing.php,1: file:a2billing.php - line:431 - uniqueid:3427593219.67 - [IVR SPEED DIAL]
-- <SIP/Voip-Innovations-out-00000009> Playing 'prepaid-press9-new-speeddial.gsm' (language 'en')
a2billing.php,1: file:Class.A2Billing.php - line:846 - uniqueid:3427593219.67 - use_dnid:0 && (!in_array:) && len_dnid:(7 || len_exten:1 ) && (try_num:2)
-- <SIP/Voip-Innovations-out-00000009> Playing 'prepaid-enter-dest.gsm' (language 'en')
a2billing.php,1: file:Class.A2Billing.php - line:863 - uniqueid:3427593219.67 - RES DTMF :
a2billing.php,1: file:Class.A2Billing.php - line:921 - uniqueid:3427593219.67 - [CALL 2 DID]
a2billing.php,1: file:Class.A2Billing.php - line:930 - uniqueid:3427593219.67 - 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 = '' 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:936 - uniqueid:3427593219.67 - DESTINATION ::>
a2billing.php,1: file:Class.A2Billing.php - line:943 - uniqueid:3427593219.67 - RULES APPLY ON DESTINATION ::>
a2billing.php,1: file:a2billing.php - line:560 - uniqueid:3427593219.67 - ANSWER fct callingcard_ivr authorize:> -1
a2billing.php,1: file:Class.A2Billing.php - line:787 - uniqueid:3427593219.67 - [CARD STATUS UPDATE]
a2billing.php,1: file:Class.A2Billing.php - line:796 - uniqueid:3427593219.67 - [QUERY USING CARD UPDATE::> UPDATE cc_card SET inuse = inuse - 1, credit = credit + 0.25 WHERE username = '00000']
-- <SIP/Voip-Innovations-out-00000009>AGI Script a2billing.php completed, returning 4
== Spawn extension (a2billing-callingcard, 1, 2) exited non-zero on 'SIP/Voip-Innovations-out-00000009'
-- Executing [h@a2billing-callingcard:1] Hangup("SIP/Voip-Innovations-out-00000009", "") in new stack
== Spawn extension (a2billing-callingcard, h, 1) exited non-zero on 'SIP/Voip-Innovations-out-00000009'


Top
 Profile  
 
 Post subject: Re: Session= 0 A2billing not Charging customers
PostPosted: Sun Mar 29, 2015 9:29 pm 
Offline

Joined: Sat Oct 01, 2011 4:41 am
Posts: 50
I Figured out what caused my issue, I had asterisk do the call back outside of a2billing using Originate() i suppose a2billing and asterisk was confused as to what channel the session time would;d be for lol. I got the callback working in a2billing now and it all works now :mrgreen2:


Asterisk 13
freePBX 12
A2Billing v2.1.0


Top
 Profile  
 
 Post subject: Re: Session= 0 A2billing not Charging customers
PostPosted: Mon Mar 30, 2015 8:17 am 
Offline

Joined: Sat Oct 01, 2011 4:41 am
Posts: 50
seems it still is doing this.. only happens on call back calls though. It seems to have started back doing this a mid-nite aswell. here is more info on setup and call

[a2billing-all-callback]
exten => 1,1,agi(googletts.agi,"Hang up. We Are Calling you Back ",en)
exten => 1,n,Wait(1)
exten => 1,n,System(service a2b-callback-daemon start)
exten => 1,n,DeadAgi(a2billing.php,1,all-callback)
exten => 1,n,Hangup()

[a2billing-callingcard]
exten => 1,1,Wait(2)
exten => 1,n,Set(CALLERID(num)=18775743418)
exten => 1,n,Set(CALLERID(name)=Beat My Price)
exten => 1,n,Set(CALLERID(dnid)=+18775743418)
exten => 1,n,Answer()
exten => 1,n,DeadAgi(a2billing.php,1)
exten => 1,n,Hangup



Dumping Info For Channel: SIP/Voip-Innovations-out-0000007a:
================================================================================
Info:
Name= SIP/Voip-Innovations-out-0000007a
Type= SIP
UniqueID= 1427729305.886
LinkedID= 1427729305.886
CallerIDNum= 18775743418
CallerIDName= (N/A)
ConnectedLineIDNum= 18775743418
ConnectedLineIDName=(N/A)
DNIDDigits= +18775743418
RDNIS= (N/A)
Parkinglot= default
Language= en
State= Up (6)
Rings= 0
NativeFormat= (ulaw)
WriteFormat= ulaw
ReadFormat= ulaw
RawWriteFormat= ulaw
RawReadFormat= ulaw
WriteTranscode= No
ReadTranscode= No
1stFileDescriptor= 32
Framesin= 5419
Framesout= 4338
TimetoHangup= 0
ElapsedTime= 0h1m44s
BridgeID= (Not bridged)
Context= a2billing-callingcard
Extension= h
Priority= 1
CallGroup=
PickupGroup=
Application= DumpChan
Data= (Empty)
Blocking_in= (Not Blocking)

Variables:
AGISTATUS=HANGUP
DIALSTATUS=ANSWER
DIALEDTIME=104
ANSWEREDTIME=0
RTPAUDIOQOSRTTBRIDGED=minrtt=0.000000;maxrtt=0.000000;avgrtt=0.000000;stdevrtt=0.000000;
RTPAUDIOQOSLOSSBRIDGED=minrxlost=0.000000;maxrxlost=0.000000;avgrxlost=0.000000;stdevrxlost=0.000000;reported_minlost=0.000000;reported_maxlost=0.000000;reported_avglost=0.000000;reported_stdevlost=0.000000;
RTPAUDIOQOSJITTERBRIDGED=minrxjitter=0.000000;maxrxjitter=0.000000;avgrxjitter=0.000000;stdevrxjitter=0.000000;reported_minjitter=0.000000;reported_maxjitter=0.000000;reported_avgjitter=0.000000;reported_stdevjitter=0.000000;
RTPAUDIOQOSBRIDGED=ssrc=950034847;themssrc=2730886511;lp=0;rxjitter=0.000000;rxcount=810;txjitter=0.000039;txcount=790;rlp=0;rtt=0.000000
RTPAUDIOQOSRTT=minrtt=0.000000;maxrtt=0.000000;avgrtt=0.000000;stdevrtt=0.000000;
RTPAUDIOQOSLOSS=minrxlost=0.000000;maxrxlost=0.000000;avgrxlost=0.000000;stdevrxlost=0.000000;reported_minlost=0.000000;reported_maxlost=0.000000;reported_avglost=0.000000;reported_stdevlost=0.000000;
RTPAUDIOQOSJITTER=minrxjitter=0.000000;maxrxjitter=0.000000;avgrxjitter=0.000000;stdevrxjitter=0.000000;reported_minjitter=0.000000;reported_maxjitter=0.000000;reported_avgjitter=0.000000;reported_stdevjitter=0.000000;
RTPAUDIOQOS=ssrc=464749801;themssrc=826617174;lp=0;rxjitter=0.000000;rxcount=4597;txjitter=0.000095;txcount=4338;rlp=0;rtt=0.364404
[email protected]:5060
BRIDGEPEER=SIP/Voip-Innovations-out-0000007b
DIALEDPEERNUMBER=Voip-Innovations-out/17708925187
DIALEDPEERNAME=SIP/Voip-Innovations-out-0000007b
PLAYBACKSTATUS=SUCCESS
IDCONF=1
CALLED=4044905024
MODE=ALL
CBID=33280-xy8sh73
TARIFF=13
LEG=
[email protected]:5060


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 
Auto Dialer Software


All times are UTC


Who is online

Users browsing this forum: No registered users and 32 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