My solution is
Call =>PRI E1 Trunk => A2billing Charge => Outbound Trunk
I used callerid authentication
my conf is
[agi-conf2]
; the debug level
; 0=none, 1=low, 2=normal, 3=all
debug = 1
asterisk_version = 1_4
answer_call = no
play_audio = YES
say_goodbye = NO
play_menulanguage = NO
force_language =
intro_prompt =
min_credit_2call = 0
min_duration_2bill = 0
notenoughcredit_cardnumber = YES
notenoughcredit_assign_newcardnumber_cid = YES
use_dnid = YES
no_auth_dnid = 2400,2300
number_try = 1
force_callplan_id =
say_balance_after_auth = NO
say_balance_after_call = NO
say_rateinitial = NO
say_timetocall = NO
auto_setcallerid = YES
force_callerid =
cid_sanitize = NO
cid_enable = YES
cid_askpincode_ifnot_callerid = YES
cid_auto_assign_card_to_cid = YES
cid_auto_create_card = NO
cid_auto_create_card_len = 10
cid_auto_create_card_typepaid = POSTPAY
cid_auto_create_card_credit = 0
cid_auto_create_card_credit_limit = 1000
cid_auto_create_card_tariffgroup = 6
callerid_authentication_over_cardnumber = YES
sip_iax_friends = NO
sip_iax_pstn_direct_call_prefix = 555
sip_iax_pstn_direct_call = NO
ivr_voucher = NO
ivr_voucher_prefix = 8
jump_voucher_if_min_credit = NO
extracharge_did =
extracharge_fee =
international_prefixes = 011,00,09
dialcommand_param = "|40|L(%timeout%:61000:30000)"
dialcommand_param_sipiax_friend = "|60|L(3600000:61000:30000)"
switchdialcommand = NO
failover_recursive_limit = 2
maxtime_tocall_negatif_free_route = 5400
send_reminder = NO
record_call = NO
monitor_formatfile = wav
agi_force_currency =
currency_association = twd:nt,cny:rmb,usd:dollars,mxn:pesos,eur:euros,all:credit
file_conf_enter_destination = prepaid-enter-dest
file_conf_enter_menulang = prepaid-menulang2
callback_bill_1stleg_ifcall_notconnected = YES
______________________________________________
Some Call all Right,but Some call it's say my time to call again again...
AGI like this
********************************************
a2billing.php|2: file:Class.A2Billing.php - line:1715 - [SET CHANNEL(language) en]
a2billing.php|2: file:Class.A2Billing.php - line:649 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse+1 WHERE username='5831563']
a2billing.php|2: file:Class.A2Billing.php - line:1400 - [AUTO SetCallerID]
a2billing.php|2: file:Class.A2Billing.php - line:1406 - [REQUESTED SetCallerID : 8615880217364]
a2billing.php|2: file:Class.A2Billing.php - line:1417 - [EXEC SetCallerID : 8615880217364]
a2billing.php|2: file:a2billing.php - line:170 - [CHANNEL STATUS : 4 = Line is ringing]
a2billing.php|2: file:a2billing.php - line:171 - [CREDIT : 8970.88400][CREDIT MIN_CREDIT_2CALL : 0]
a2billing.php|2: file:Class.A2Billing.php - line:671 - 1 && && 15&& 0
a2billing.php|2: file:Class.A2Billing.php - line:696 - DESTINATION ::> 0028615880666666
a2billing.php|2: file:Class.A2Billing.php - line:698 - RULES APPLY ON DESTINATION ::> 0028615880666666
a2billing.php|2: file:Class.A2Billing.php - line:736 - OK - RESFINDRATE::> 1
a2billing.php|2: file:Class.A2Billing.php - line:758 - RES_ALL_CALCULTIMEOUT ::> 1
a2billing.php|2: file:Class.A2Billing.php - line:775 - TIMEOUT::> 3364080 : minutes=56068 - seconds=0
a2billing.php|2: file:Class.RateEngine.php - line:1026 - app_callingcard: Dialing 'SIP/220.228.58.75/81810028615880666666|90|HL(3364080000:61000:30000)' with timeout of '3364080'.
a2billing.php|2:
a2billing.php|2: file:Class.RateEngine.php - line:1051 - app_callingcard: CIDGROUPID='-1' OUTBOUND CID SELECTED IS '0'.
-- AGI Script Executing Application: (Dial) Options: (SIP/220.228.58.75/81810028615880666666|90|HL(3364080000:61000:30000))
-- Limit Data for this call:
> timelimit = 3364080000
> play_warning = 61000
> play_to_caller = yes
> play_to_callee = no
> warning_freq = 30000
> start_sound = (null)
> warning_sound = timeleft
> end_sound = (null)
-- Called 220.228.58.75/81810028615880666666
-- SIP/220.228.58.75-007d4c90 is making progress passing it to SIP/202.39.62.170-007ce8c0
-- SIP/220.228.58.75-007d4c90 answered SIP/202.39.62.170-007ce8c0
-- <SIP/202.39.62.170-007ce8c0> Playing 'vm-youhave' (language 'en')
-- <SIP/202.39.62.170-007ce8c0> Playing 'digits/50' (language 'en')
.....
********************************************
How can I disable it ?
|