HELP-ME PLEASE!!!
I don't know what could be wrong, I've tried everything.
see with debug = 3
== Manager 'admin' logged on from 127.0.0.1 == Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5 -- Executing [30866967@a2billing:1] NoOp("SIP/20100010-00000000", "A2Billing Start") in new stack -- Executing [30866967@a2billing:2] DeadAGI("SIP/20100010-00000000", "a2billing.php,1") in new stack -- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php a2billing.php,1: A2Billing AGI internal configuration: a2billing.php,1: Array a2billing.php,1: ( a2billing.php,1: [debug] => 3 3 3 a2billing.php,1: [asterisk_version] => 1_4 a2billing.php,1: [answer_call] => 1 a2billing.php,1: [play_audio] => a2billing.php,1: [say_goodbye] => a2billing.php,1: [play_menulanguage] => 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] => 1 a2billing.php,1: [notenoughcredit_assign_newcardnumber_cid] => 1 a2billing.php,1: [use_dnid] => 1 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] => 1 a2billing.php,1: [force_callplan_id] => a2billing.php,1: [say_balance_after_auth] => 1 a2billing.php,1: [say_balance_after_call] => a2billing.php,1: [say_rateinitial] => a2billing.php,1: [say_timetocall] => 1 a2billing.php,1: [auto_setcallerid] => 1 a2billing.php,1: [force_callerid] => a2billing.php,1: [cid_sanitize] => a2billing.php,1: [cid_enable] => a2billing.php,1: [cid_askpincode_ifnot_callerid] => 1 a2billing.php,1: [cid_auto_assign_card_to_cid] => 1 a2billing.php,1: [cid_auto_create_card] => a2billing.php,1: [cid_auto_create_card_len] => 10 a2billing.php,1: [cid_auto_create_card_typepaid] => POSTPAY a2billing.php,1: [cid_auto_create_card_credit] => 0 a2billing.php,1: [cid_auto_create_card_credit_limit] => 1000 a2billing.php,1: [cid_auto_create_card_tariffgroup] => 6 a2billing.php,1: [callerid_authentication_over_cardnumber] => a2billing.php,1: [sip_iax_friends] => a2billing.php,1: [sip_iax_pstn_direct_call_prefix] => 555 a2billing.php,1: [sip_iax_pstn_direct_call] => a2billing.php,1: [ivr_voucher] => a2billing.php,1: [ivr_voucher_prefix] => 8 a2billing.php,1: [jump_voucher_if_min_credit] => a2billing.php,1: [extracharge_did] => Array a2billing.php,1: ( a2billing.php,1: [0] => a2billing.php,1: ) a2billing.php,1: a2billing.php,1: [extracharge_fee] => Array a2billing.php,1: ( a2billing.php,1: [0] => a2billing.php,1: ) a2billing.php,1: a2billing.php,1: [dialcommand_param] => |60|HRgrL(%timeout%:61000:30000) a2billing.php,1: [dialcommand_param_sipiax_friend] => |60|HL(3600000:61000:30000) a2billing.php,1: [switchdialcommand] => a2billing.php,1: [failover_recursive_limit] => 2 a2billing.php,1: [maxtime_tocall_negatif_free_route] => 5400 a2billing.php,1: [send_reminder] => a2billing.php,1: [record_call] => 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: [file_conf_enter_destination] => prepaid-enter-dest a2billing.php,1: [file_conf_enter_menulang] => prepaid-menulang2 a2billing.php,1: [callback_bill_1stleg_ifcall_notconnected] => 1 a2billing.php,1: [logger_enable] => 1 a2billing.php,1: [log_file] => /tmp/a2billing.log 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: [ivr_voucher_prefixe] => 8 a2billing.php,1: ) a2billing.php,1: a2billing.php,1: file:a2billing.php - line:75 - IDCONFIG : 1 a2billing.php,1: file:a2billing.php - line:76 - MODE : standard a2billing.php,1: file:a2billing.php - line:88 - AGI Request: a2billing.php,1: file:a2billing.php - line:89 - Array a2billing.php,1: ( a2billing.php,1: [agi_request] => a2billing.php a2billing.php,1: [agi_channel] => SIP/20100010-00000000 a2billing.php,1: [agi_language] => pt_BR a2billing.php,1: [agi_type] => SIP a2billing.php,1: [agi_uniqueid] => 1312152382.0 a2billing.php,1: [agi_version] => 1.6.2.13 a2billing.php,1: [agi_callerid] => 20100010 a2billing.php,1: [agi_calleridname] => 20100010 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] => 30866967 a2billing.php,1: [agi_rdnis] => unknown a2billing.php,1: [agi_context] => a2billing a2billing.php,1: [agi_extension] => 30866967 a2billing.php,1: [agi_priority] => 2 a2billing.php,1: [agi_enhanced] => 0.0 a2billing.php,1: [agi_accountcode] => 3545338973 a2billing.php,1: [agi_threadid] => -1221330032 a2billing.php,1: [agi_arg_1] => 1 a2billing.php,1: ) a2billing.php,1: a2billing.php,1: file:Class.A2Billing.php - line:601 - get_agi_request_parameter = 20100010 ; SIP/20100010-00000000 ; 1312152382.0 ; 3545338973 ; 30866967 a2billing.php,1: file:a2billing.php - line:138 - [ANSWER CALL] a2billing.php,1: file:Class.A2Billing.php - line:1668 - 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='3545338973' a2billing.php,1: file:Class.A2Billing.php - line:1742 - [SET CHANNEL(language) en] a2billing.php,1: file:Class.A2Billing.php - line:634 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse+1 WHERE username='3545338973'] a2billing.php,1: file:Class.A2Billing.php - line:1969 - [A2Billing] SAY BALANCE : 15 a2billing.php,1: a2billing.php,1: file:Class.A2Billing.php - line:1122 - [CURRENCY : USD] a2billing.php,1: file:Class.A2Billing.php - line:1427 - [AUTO SetCallerID] a2billing.php,1: file:Class.A2Billing.php - line:1433 - [REQUESTED SetCallerID : 20100010] a2billing.php,1: file:Class.A2Billing.php - line:1444 - [EXEC SetCallerID : 20100010] a2billing.php,1: file:a2billing.php - line:169 - [CHANNEL STATUS : 6 = Line is up] a2billing.php,1: file:a2billing.php - line:170 - [CREDIT : 15][CREDIT MIN_CREDIT_2CALL : 0] a2billing.php,1: file:Class.A2Billing.php - line:656 - 1 && && 8&& 0 a2billing.php,1: file:Class.A2Billing.php - line:681 - DESTINATION ::> 30866967 a2billing.php,1: file:Class.A2Billing.php - line:683 - RULES APPLY ON DESTINATION ::> 30866967 a2billing.php,1: file:Class.A2Billing.php - line:721 - OK - RESFINDRATE::> 1 a2billing.php,1: file:Class.A2Billing.php - line:743 - RES_ALL_CALCULTIMEOUT ::> 1 a2billing.php,1: file:Class.A2Billing.php - line:760 - TIMEOUT::> 5400 : minutes=90 - seconds=0 a2billing.php,1: file:Class.RateEngine.php - line:960 - app_callingcard: Dialing 'SIP/R20100020/30866967|60|HRgrL(5400000:61000:30000)' with timeout of '5400'. a2billing.php,1: a2billing.php,1: file:Class.RateEngine.php - line:985 - app_callingcard: CIDGROUPID='-1' OUTBOUND CID SELECTED IS '0'. -- AGI Script Executing Application: (Dial) Options: (SIP/R20100020/30866967|60|HRgrL(5400000:61000:30000)) -- Limit Data for this call: == Using SIP RTP TOS bits 184 == Using SIP RTP CoS mark 5
-- Couldn't call R20100020/30866967 == Everyone is busy/congested at this time (0:0/0/0) a2billing.php,1: file:Class.RateEngine.php - line:1095 - [USEDRATECARD - FAIL =0] a2billing.php,1: file:Class.RateEngine.php - line:848 - [CC_asterisk_stop QUERY = INSERT INTO cc_call (uniqueid,sessionid,username,nasipaddress,starttime,sessiontime, calledstation, terminatecause, stoptime, calledrate, sessionbill, calledcountry, calledsub, destination, id_tariffgroup, id_tariffplan, id_ratecard, id_trunk, src, sipiax, buyrate, buycost, id_card_package_offer) VALUES ('1312152382.0', 'SIP/20100010-00000000', '3545338973', '', CURRENT_TIMESTAMP - INTERVAL 0 SECOND , '0', '30866967', 'CHANUNAVAIL', now(), '0', '-0', '', '', 'BR2', '6', '6', '2007', '8', '20100010', '0', '0', '0', '0')] a2billing.php,1: file:Class.RateEngine.php - line:851 - [CC_asterisk_stop 1.1: SQL: DONE : result=1] a2billing.php,1: file:a2billing.php - line:309 - [a2billing account stop] a2billing.php,1: file:Class.A2Billing.php - line:634 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse-1 WHERE username='3545338973'] -- <SIP/20100010-00000000>AGI Script a2billing.php completed, returning -1 -- Executing [h@a2billing:1] Hangup("SIP/20100010-00000000", "") in new stack == Spawn extension (a2billing, h, 1) exited non-zero on 'SIP/20100010-00000002'
|