Support A2Billing :

provided by Star2Billing S.L.

Support A2Billing :
It is currently Fri Apr 26, 2024 7:51 pm
Voice Broadcast System


All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: using cid_auto_create_card function
PostPosted: Fri Mar 28, 2008 3:15 am 
Offline

Joined: Mon Jun 25, 2007 4:28 am
Posts: 22
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.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 28, 2008 5:03 am 
Offline
User avatar

Joined: Mon Apr 30, 2007 6:43 am
Posts: 1060
Location: Canada
Your config file is not up to date. It is that of an older versions of A2Billing.

I know that the auto_create_card feature is working cause I have tested successfully.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 28, 2008 5:55 am 
Offline

Joined: Mon Jun 25, 2007 4:28 am
Posts: 22
Which version of a2billing you using?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 28, 2008 5:56 am 
Offline
User avatar

Joined: Mon Apr 30, 2007 6:43 am
Posts: 1060
Location: Canada
The latest v1.3.2


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 28, 2008 8:24 am 
Offline

Joined: Mon Jun 25, 2007 4:28 am
Posts: 22
Anyone try it on the older version 1.2.3?

Cheers


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 28, 2008 4:10 pm 
Offline

Joined: Tue Jun 20, 2006 3:23 pm
Posts: 153
it doesn't work on version 1.2.3


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 
VoIP Billing solution


All times are UTC


Who is online

Users browsing this forum: No registered users and 20 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group