Hi all,
I tried to use the cid_auto_create_card function in the a2billing.conf to automatically create a card for the user who dial in from a specified phone number.
This is my extension.conf file:
exten => XXXXXXXX,1,Answer
exten => XXXXXXXX,2,Wait,1
exten => XXXXXXXX,3,DeadAGI(callerid.php|7)
exten => XXXXXXXX,4,Wait,3
exten => XXXXXXXXX,5,Hangup
This is my a2billing.conf file:
[agi-conf7]
debug=3
answer_call=yes
logger_enable=YES
log_file=/tmp/a2billing.log
setlanguage_deprecate=YES
say_goodbye=NO
play_menulanguage=NO
force_language=
intro_prompt=
len_cardnumber=8
len_aliasnumber = 5
len_voucher = 10
min_credit_2call=0.20
; this is the minimum duration in seconds of a call in order to be billed
; any call with a length less than min_duration_2bill will have a 0 cost
; usefull not to charge callers for system errors when a call was answered but it actually didn't connect
min_duration_2bill=0
notenoughcredit_cardnumber=YES
notenoughcredit_assign_newcardnumber_cid=YES
use_dnid=NO
no_auth_dnid=2400,2300
number_try=3
say_balance_after_auth=YES
say_balance_after_call=NO
; Play the initial cost of the route (values : yes - no)
say_rateinitial=NO
say_timetocall=NO
; enable the presentation of a callerID number
auto_setcallerid=YES
force_callerid=YES
; If force_callerid is not set, then this ensures that CID is set to one of the ccard's configured caller IDs or blank if none available.
; NO - disable this feature, caller ID can be anything.
; CID - Caller ID must be one of the customers caller IDs
; DID - Caller ID must be one of the customers DID nos.
; BOTH - Caller ID must be one of the above two items.
cid_sanitize=NO
cid_enable=YES
cid_askpincode_ifnot_callerid=NO
cid_auto_create_card=YES
cid_auto_assign_card_to_cid=YES
cid_auto_create_card_typepaid=PREPAY
cid_auto_create_card_credit=1
cid_auto_create_card_credit_limit=1
cid_auto_create_card_tariffgroup=1
; if we want to check the callerID over the cardnumber authentication (to guard against spoofing)
callerid_authentication_over_cardnumber=NO
sip_iax_friends=NO
sip_iax_pstn_direct_call_prefix=9
sip_iax_pstn_direct_call=NO
; Extracharge DIDs, multiple numbers and fees must be separated by comma
;extracharge_did=1800XXXXXXX,1888XXXXXXX
extracharge_did=
;extracharge_fee=0.02,0.03
extracharge_fee=
dialcommand_param="|80|HL(%timeout%:61000:00000)"
dialcommand_param_sipiax_friend="|30|HL(3600000:61000:30000)"
switchdialcommand=NO
maxtime_tocall_negatif_free_route = 5400
record_call=NO
monitor_formatfile=gsm
base_currency = SGD
agi_force_currency =
currency_association = SGD:prepaid-dollar,mxn:pesos,eur:euro,all:prepaid-dollar
file_conf_enter_destination = prepaid-enter-dest
file_conf_enter_menulang = prepaid-menulang2
debugshell=0
I dont know what happend to this configuration, when i call in the number, it cant register my caller id by creating a new call card with the caller id assigned to it
Can anyone here help me on that?
Thanks
Cheers.
|