all i hear is '20 dollars' for instance. thats if i register a sip phone with the customer info i created in a2billing interface cuz i did two customers thru that
one with 20 dollars another with 50.
so its doing something in relation to the info in mysql. but im not sure if im on the right track. u mentioned i may have the sounds files for a2billing missing from the correct dir
Added after 34 minutes:
here is the out put from the sip phone registered with the number 1043522453 generated by a2billing
Verbosity is at least 6
-- Remote UNIX connection
-- Registered SIP '1043522453' at 192.168.1.19 port 6182 expires 3600
trixbox1*CLI>
trixbox1*CLI>
trixbox1*CLI>
-- Executing [225@a2billing:1] Answer("SIP/1043522453-084df280", "") in new stack
-- Executing [225@a2billing:2] Wait("SIP/1043522453-084df280", "2") in new stack
-- Executing [225@a2billing:3] DeadAGI("SIP/1043522453-084df280", "a2billing.php") in new stack
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
a2billing.php: A2Billing AGI internal configuration:
a2billing.php: Array
a2billing.php: (
a2billing.php: [debug] => 1
a2billing.php: [asterisk_version] => 1_2
a2billing.php: [answer_call] => 1
a2billing.php: [play_audio] => 1
a2billing.php: [say_goodbye] =>
a2billing.php: [play_menulanguage] =>
a2billing.php: [force_language] =>
a2billing.php: [intro_prompt] =>
a2billing.php: [min_credit_2call] => 0
a2billing.php: [min_duration_2bill] => 0
a2billing.php: [notenoughcredit_cardnumber] => 1
a2billing.php: [notenoughcredit_assign_newcardnumber_cid] => 1
a2billing.php: [use_dnid] =>
a2billing.php: [no_auth_dnid] => Array
a2billing.php: (
a2billing.php: [0] => 2400
a2billing.php: [1] => 2300
a2billing.php: )
a2billing.php:
a2billing.php: [number_try] => 3
a2billing.php: [force_callplan_id] =>
a2billing.php: [say_balance_after_auth] => 1
a2billing.php: [say_balance_after_call] =>
a2billing.php: [say_rateinitial] =>
a2billing.php: [say_timetocall] => 1
a2billing.php: [auto_setcallerid] => 1
a2billing.php: [force_callerid] =>
a2billing.php: [cid_sanitize] =>
a2billing.php: [cid_enable] =>
a2billing.php: [cid_askpincode_ifnot_callerid] => 1
a2billing.php: [cid_auto_assign_card_to_cid] => 1
a2billing.php: [cid_auto_create_card] =>
a2billing.php: [cid_auto_create_card_len] => 10
a2billing.php: [cid_auto_create_card_typepaid] => POSTPAY
a2billing.php: [cid_auto_create_card_credit] => 0
a2billing.php: [cid_auto_create_card_credit_limit] => 1000
a2billing.php: [cid_auto_create_card_tariffgroup] => 6
a2billing.php: [callerid_authentication_over_cardnumber] =>
a2billing.php: [sip_iax_friends] =>
a2billing.php: [sip_iax_pstn_direct_call_prefix] => 555
a2billing.php: [sip_iax_pstn_direct_call] =>
a2billing.php: [ivr_voucher] =>
a2billing.php: [ivr_voucher_prefix] => 8
a2billing.php: [jump_voucher_if_min_credit] =>
a2billing.php: [extracharge_did] => Array
a2billing.php: (
a2billing.php: [0] =>
a2billing.php: )
a2billing.php:
a2billing.php: [extracharge_fee] => Array
a2billing.php: (
a2billing.php: [0] =>
a2billing.php: )
a2billing.php:
a2billing.php: [international_prefixes] => Array
a2billing.php: (
a2billing.php: [0] => 011
a2billing.php: [1] => 00
a2billing.php: [2] => 09
a2billing.php: [3] => 1
a2billing.php: )
a2billing.php:
a2billing.php: [dialcommand_param] => |60|HRgrL(%timeout%:61000:30000)
a2billing.php: [dialcommand_param_sipiax_friend] => |60|HRgrL(3600000:61000:30000)
a2billing.php: [switchdialcommand] =>
a2billing.php: [failover_recursive_limit] => 2
a2billing.php: [maxtime_tocall_negatif_free_route] => 5400
a2billing.php: [send_reminder] =>
a2billing.php: [record_call] =>
a2billing.php: [monitor_formatfile] => gsm
a2billing.php: [agi_force_currency] =>
a2billing.php: [currency_association] => Array
a2billing.php: (
a2billing.php: [0] => usd:dollars
a2billing.php: [1] => mxn:pesos
a2billing.php: [2] => eur:euros
a2billing.php: [3] => all:credit
a2billing.php: )
a2billing.php:
a2billing.php: [file_conf_enter_destination] => prepaid-enter-dest
a2billing.php: [file_conf_enter_menulang] => prepaid-menulang2
a2billing.php: [callback_bill_1stleg_ifcall_notconnected] => 1
a2billing.php: [logger_enable] => 1
a2billing.php: [log_file] => /tmp/a2billing.log
a2billing.php: [currency_association_internal] => Array
a2billing.php: (
a2billing.php: [usd] => dollars
a2billing.php: [mxn] => pesos
a2billing.php: [eur] => euros
a2billing.php: [all] => credit
a2billing.php: )
a2billing.php:
a2billing.php: [ivr_voucher_prefixe] => 8
a2billing.php: )
a2billing.php:
a2billing.php: file:a2billing.php - line:76 - IDCONFIG : 1
a2billing.php: file:a2billing.php - line:77 - MODE : standard
a2billing.php: file:a2billing.php - line:89 - AGI Request:
a2billing.php: file:a2billing.php - line:90 - Array
a2billing.php: (
a2billing.php: [agi_request] => a2billing.php
a2billing.php: [agi_channel] => SIP/1043522453-084df280
a2billing.php: [agi_language] => en
a2billing.php: [agi_type] => SIP
a2billing.php: [agi_uniqueid] => 1200971879.40
a2billing.php: [agi_callerid] => 896022471449494
a2billing.php: [agi_calleridname] => Mario Fleming
a2billing.php: [agi_callingpres] => 0
a2billing.php: [agi_callingani2] => 0
a2billing.php: [agi_callington] => 0
a2billing.php: [agi_callingtns] => 0
a2billing.php: [agi_dnid] => 225
a2billing.php: [agi_rdnis] => unknown
a2billing.php: [agi_context] => a2billing
a2billing.php: [agi_extension] => 225
a2billing.php: [agi_priority] => 3
a2billing.php: [agi_enhanced] => 0.0
a2billing.php: [agi_accountcode] => 1043522453
a2billing.php: )
a2billing.php:
a2billing.php: file:Class.A2Billing.php - line:616 - get_agi_request_parameter = 896022471449494 ; SIP/1043522453-084df280 ; 1200971879.40 ; 1043522453 ; 225
a2billing.php: file:a2billing.php - line:139 - [ANSWER CALL]
a2billing.php: file:Class.A2Billing.php - line:1640 - 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 FROM cc_card LEFT JOIN cc_tariffgroup ON tariff=cc_tariffgroup.id WHERE username='1043522453'
a2billing.php: file:Class.A2Billing.php - line:1714 - [SET LANGUAGE() en]
a2billing.php: file:Class.A2Billing.php - line:649 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse+1 WHERE username='1043522453']
a2billing.php: file:Class.A2Billing.php - line:1950 - [A2Billing] SAY BALANCE : 20
a2billing.php:
a2billing.php: file:Class.A2Billing.php - line:1143 - [CURRENCY : USD]
-- <SIP/1043522453-084df280> Playing 'digits/20' (language 'en') -- Playing 'dollars' (escape_digits=#) (sample_offset 0)
a2billing.php: file:Class.A2Billing.php - line:1399 - [AUTO SetCallerID]
a2billing.php: file:Class.A2Billing.php - line:1405 - [REQUESTED SetCallerID : 896022471449494]
a2billing.php: file:Class.A2Billing.php - line:1416 - [EXEC SetCallerID : 896022471449494]
a2billing.php: file:a2billing.php - line:170 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php: file:a2billing.php - line:171 - [CREDIT : 20][CREDIT MIN_CREDIT_2CALL : 0]
a2billing.php: file:Class.A2Billing.php - line:671 - && && 3&& 0
a2billing.php: file:Class.A2Billing.php - line:678 - RES DTMF : -1
a2billing.php: file:Class.A2Billing.php - line:696 - DESTINATION ::> -1
a2billing.php: file:Class.A2Billing.php - line:698 - RULES APPLY ON DESTINATION ::> -1
a2billing.php: file:a2billing.php - line:170 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php: file:a2billing.php - line:171 - [CREDIT : 20][CREDIT MIN_CREDIT_2CALL : 0]
a2billing.php: file:Class.A2Billing.php - line:671 - 0 && && 3&& 1
a2billing.php: file:Class.A2Billing.php - line:678 - RES DTMF : -1
a2billing.php: file:Class.A2Billing.php - line:696 - DESTINATION ::> -1
a2billing.php: file:Class.A2Billing.php - line:698 - RULES APPLY ON DESTINATION ::> -1
a2billing.php: file:a2billing.php - line:170 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php: file:a2billing.php - line:171 - [CREDIT : 20][CREDIT MIN_CREDIT_2CALL : 0]
a2billing.php: file:Class.A2Billing.php - line:671 - 0 && && 3&& 2
a2billing.php: file:Class.A2Billing.php - line:678 - RES DTMF : -1
a2billing.php: file:Class.A2Billing.php - line:696 - DESTINATION ::> -1
a2billing.php: file:Class.A2Billing.php - line:698 - RULES APPLY ON DESTINATION ::> -1
a2billing.php: file:Class.A2Billing.php - line:649 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse-1 WHERE username='1043522453']
-- AGI Script a2billing.php completed, returning 0
-- Executing [h@a2billing:1] Dial("SIP/1043522453-084df280", "SIP/h") in new stack
== Everyone is busy/congested at this time (1:0/0/1)
-- Executing [h@a2billing:2] Congestion("SIP/1043522453-084df280", "") in new stack
== Spawn extension (a2billing, h, 2) exited non-zero on 'SIP/1043522453-084df280'
trixbox1*CLI>
|