We have installed and setup A2Billing 1.3.4 with Asterisk 1.6.0.5 as a pinless calling card and all features are currently working marvelous.
BUT there seems to be a setting somewhere (we cannot find!) that is limiting the calls to 900 seconds (15 minutes).
The call comes in, the caller id is identified and the caller is authenticated. The caller hears dial tone, we dial out the number and the bridge is made. At 900 seconds into the call the connection is dropped.
Are there any settings that sets the call duration to 900 seconds? how can this limitation be permanently removed?
Thank you in advance for the help!
Here is what we see in our logs and below our configuration:
(phone numbers and certain information have changed a bit do to the clients privacy concerns)
CALL LOG
[22/03/2009 15:28:23]:[file:a2billing.php - line:78]:[CallerID:]:[CN:]:[IDCONFIG : 1]
[22/03/2009 15:28:23]:[file:a2billing.php - line:79]:[CallerID:]:[CN:]:[MODE : standard]
[22/03/2009 15:28:23]:[file:Class.A2Billing.php - line:621]:[CallerID:5943458989]:[CN:]:[ get_agi_request_parameter = 5943458989 ; SIP/7544000-b581a9a0 ; 1237750102.150 ; ; +5943432345]
[22/03/2009 15:28:23]:[file:a2billing.php - line:141]:[CallerID:5943458989]:[CN:]:[[ANSWER CALL]]
[22/03/2009 15:28:23]:[file:Class.A2Billing.php - line:1438]:[CallerID:5943458989]:[CN:]:[[CID_ENABLE - CID_CONTROL - CID:5943458989]]
[22/03/2009 15:28:23]:[file:Class.A2Billing.php - line:1439]:[CallerID:5943458989]:[CN:]:[[CID_ENABLE - CID_CONTROL - CID:5943458989]]
[22/03/2009 15:28:23]:[file:Class.A2Billing.php - line:1456]:[CallerID:5943458989]:[CN:]:[QUERY = SELECT cc_callerid.cid, cc_callerid.id_cc_card, cc_callerid.activated, cc_card.credit, cc_card.tariff, cc_card.activated, cc_card.inuse, c
c_card.simultaccess, cc_card.typepaid, cc_card.creditlimit, cc_card.language, cc_card.username, removeinterprefix, cc_card.redial, enableexpire, UNIX_TIMESTAMP(expirationdate), expiredays, nbused, UNIX_TIMESTAMP(firstusedate), UNIX_TI
MESTAMP(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_callerid LEFT JOIN cc_card ON cc_callerid.id_cc_card=cc_card.id L
EFT JOIN cc_tariffgroup ON cc_card.tariff=cc_tariffgroup.id WHERE cc_callerid.cid='5943458989'
RESULT : Array
(
[0] => Array
(
[0] => 5943458989
[cid] => 5943458989
[1] => 11
[id_cc_card] => 11
[2] => t
[activated] => t
[3] => 25.00000
[credit] => 25.00000
[4] => 8
[tariff] => 8
[5] => t
[6] => 0
[inuse] => 0
[7] => 1
[simultaccess] => 1
[8] => 0
[typepaid] => 0
[9] =>
[creditlimit] =>
[10] => en
[language] => en
[11] => 2325946616
[username] => 2325946616
[12] => 0
[removeinterprefix] => 0
[13] => 15944004343
[redial] => 15944004343
[14] => 0
[enableexpire] => 0
[15] => 1552445621
[UNIX_TIMESTAMP(expirationdate)] => 1552445621
[16] => 0
[expiredays] => 0
[17] => 21
[nbused] => 21
[18] => 1236914428
[UNIX_TIMESTAMP(firstusedate)] => 1236914428
[19] => 1236913328
[UNIX_TIMESTAMP(cc_card.creationdate)] => 1236913328
[20] => USD
[currency] => USD
[21] => Mandia
[lastname] => Mandia
[22] => Xisco
[firstname] => Xisco
[23] =>
[email protected]
[email] =>
[email protected]
[24] => 2222
[uipass] => 2222
[25] => -1
[id_campaign] => -1
[26] => 11
[id] => 11
[27] => 5943458989
[useralias] => 5943458989
)
)
]
[22/03/2009 15:28:23]:[file:Class.A2Billing.php - line:1625]:[CallerID:5943458989]:[CN:]:[ - Account code - 2325946616]
[22/03/2009 15:28:23]:[file:Class.A2Billing.php - line:1714]:[CallerID:5943458989]:[CN:2325946616]:[[SET LANGUAGE() en]]
[22/03/2009 15:28:23]:[file:Class.A2Billing.php - line:1717]:[CallerID:5943458989]:[CN:2325946616]:[[credit=25.00000 :: tariff=8 :: active=t :: isused=0 :: simultaccess=1 :: typepaid=0 :: creditlimit= :: language=en]]
[22/03/2009 15:28:23]:[file:Class.A2Billing.php - line:654]:[CallerID:5943458989]:[CN:2325946616]:[[CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse+1 WHERE username='2325946616']]
[22/03/2009 15:28:23]:[file:Class.A2Billing.php - line:1969]:[CallerID:5943458989]:[CN:2325946616]:[[A2Billing] SAY BALANCE : 25.00000]
[22/03/2009 15:28:23]:[file:Class.A2Billing.php - line:1148]:[CallerID:5943458989]:[CN:2325946616]:[[CURRENCY : USD]]
[22/03/2009 15:28:23]:[file:a2billing.php - line:158]:[CallerID:5943458989]:[CN:2325946616]:[[TRY : callingcard_ivr_authenticate]]
[22/03/2009 15:28:23]:[file:Class.A2Billing.php - line:1400]:[CallerID:5943458989]:[CN:2325946616]:[[AUTO SetCallerID]]
[22/03/2009 15:28:23]:[file:Class.A2Billing.php - line:1406]:[CallerID:5943458989]:[CN:2325946616]:[[REQUESTED SetCallerID : 5943458989]]
[22/03/2009 15:28:23]:[file:Class.A2Billing.php - line:1417]:[CallerID:5943458989]:[CN:2325946616]:[[EXEC SetCallerID : 5943458989]]
[22/03/2009 15:28:23]:[file:a2billing.php - line:172]:[CallerID:5943458989]:[CN:2325946616]:[[CHANNEL STATUS : 6 = Line is up]]
[22/03/2009 15:28:23]:[file:a2billing.php - line:173]:[CallerID:5943458989]:[CN:2325946616]:[[CREDIT : 25.00000][CREDIT MIN_CREDIT_2CALL : 0]]
[22/03/2009 15:28:23]:[file:Class.A2Billing.php - line:676]:[CallerID:5943458989]:[CN:2325946616]:[ && && 11&& 0]
[22/03/2009 15:28:36]:[file:Class.A2Billing.php - line:683]:[CallerID:5943458989]:[CN:2325946616]:[RES DTMF : 15944004343]
[22/03/2009 15:28:36]:[file:Class.A2Billing.php - line:701]:[CallerID:5943458989]:[CN:2325946616]:[DESTINATION ::> 15944004343]
[22/03/2009 15:28:36]:[file:Class.A2Billing.php - line:703]:[CallerID:5943458989]:[CN:2325946616]:[RULES APPLY ON DESTINATION ::> 15944004343]
[22/03/2009 15:28:36]:[file:Class.RateEngine.php - line:73]:[CallerID:5943458989]:[CN:2325946616]:[[CC_asterisk_rate-engine: (8, 15944004343)]]
[22/03/2009 15:28:36]:[file:Class.RateEngine.php - line:122]:[CallerID:5943458989]:[CN:2325946616]:[[CC_asterisk_rate-engine: CALLERID] 5943458989]
[22/03/2009 15:28:36]:[file:Class.RateEngine.php - line:136]:[CallerID:5943458989]:[CN:2325946616]:[[CALLERID_QUERY]
SELECT count(calleridprefix) FROM cc_tariffplan RIGHT JOIN cc_tariffgroup_plan ON cc_tariffgroup_plan.idtariffgroup=8 WHERE calleridprefix=SUBSTRING('5943458989',1,length(calleridprefix))
[RESULT]Array
(
[0] => Array
(
[0] => 0
[count(calleridprefix)] => 0
)
)
]
[22/03/2009 15:28:36]:[file:Class.RateEngine.php - line:184]:[CallerID:5943458989]:[CN:2325946616]:[[RATE ENGINE QUERY]
SELECT
tariffgroupname, lcrtype, idtariffgroup, cc_tariffgroup_plan.idtariffplan, tariffname, destination,
cc_ratecard.id, dialprefix, destination, buyrate, buyrateinitblock, buyrateincrement, rateinitial, initblock, billingblock,
connectcharge, disconnectcharge, stepchargea, chargea, timechargea, billingblocka, stepchargeb, chargeb,
timechargeb, billingblockb, stepchargec, chargec, timechargec, billingblockc,
cc_tariffplan.id_trunk AS tp_id_trunk, tp_trunk.trunkprefix AS tp_trunk, tp_trunk.providertech AS tp_providertech,
tp_trunk.providerip AS tp_providerip, tp_trunk.removeprefix AS tp_removeprefix,
cc_ratecard.id_trunk AS rc_id_trunk, rt_trunk.trunkprefix AS rc_trunkprefix, rt_trunk.providertech AS rc_providertech,
rt_trunk.providerip AS rc_providerip, rt_trunk.removeprefix AS rc_removeprefix, musiconhold,
tp_trunk.failover_trunk AS tp_failover_trunk, rt_trunk.failover_trunk AS rt_failover_trunk,
tp_trunk.addparameter AS tp_addparameter_trunk, rt_trunk.addparameter AS rt_addparameter_trunk, id_outbound_cidgroup,
freetimetocall_package_offer, freetimetocall, packagetype, billingtype, startday, id_cc_package_offer
FROM cc_tariffgroup
RIGHT JOIN cc_tariffgroup_plan ON cc_tariffgroup_plan.idtariffgroup=cc_tariffgroup.id
INNER JOIN cc_tariffplan ON (cc_tariffplan.id=cc_tariffgroup_plan.idtariffplan )
LEFT JOIN cc_ratecard ON cc_ratecard.idtariffplan=cc_tariffplan.id
LEFT JOIN cc_trunk AS rt_trunk ON cc_ratecard.id_trunk=rt_trunk.id_trunk
LEFT JOIN cc_trunk AS tp_trunk ON cc_tariffplan.id_trunk=tp_trunk.id_trunk
LEFT JOIN cc_package_offer ON cc_package_offer.id=cc_tariffgroup.id_cc_package_offer
WHERE cc_tariffgroup.id=8 AND (dialprefix='15944004343' OR dialprefix='1594400434' OR dialprefix='159440043' OR dialprefix='15944004' OR dialprefix='1594400' OR dialprefix='159440' OR dialprefix='15944' OR dialprefix='1594' OR dialprefix='159' OR dialprefix='15' OR dialprefix='1' OR dialprefix='defaultprefix')
AND startingdate<= CURRENT_TIMESTAMP AND (expirationdate > CURRENT_TIMESTAMP OR expirationdate IS NULL OR LENGTH(expirationdate)<5)
AND startdate<= CURRENT_TIMESTAMP AND (stopdate > CURRENT_TIMESTAMP OR stopdate IS NULL OR LENGTH(stopdate)<5)
AND (starttime <= 9568 AND endtime >=9568)
AND idtariffgroup='8'
AND ( dnidprefix=SUBSTRING('+5943432345',1,length(dnidprefix)) OR (dnidprefix='all' AND 0 = 0))
AND ( calleridprefix=SUBSTRING('5943458989',1,length(calleridprefix)) OR (calleridprefix='all' AND 0 = 0))
ORDER BY LENGTH(dialprefix) DESC
]
[22/03/2009 15:28:36]:[file:Class.RateEngine.php - line:192]:[CallerID:5943458989]:[CN:2325946616]:[[rate-engine: Count Total result 1]]
[22/03/2009 15:28:36]:[file:Class.RateEngine.php - line:267]:[CallerID:5943458989]:[CN:2325946616]:[[CC_asterisk_rate-engine: Count Total result 1]]
[22/03/2009 15:28:36]:[file:Class.RateEngine.php - line:268]:[CallerID:5943458989]:[CN:2325946616]:[[CC_asterisk_rate-engine: number_trunk 1]]
[22/03/2009 15:28:36]:[file:Class.A2Billing.php - line:741]:[CallerID:5943458989]:[CN:2325946616]:[OK - RESFINDRATE::> 1]
[22/03/2009 15:28:36]:[file:Class.RateEngine.php - line:280]:[CallerID:5943458989]:[CN:2325946616]:[[CC_RATE_ENGINE_ALL_CALCULTIMEOUT (25.00000)]]
[22/03/2009 15:28:36]:[file:Class.RateEngine.php - line:286]:[CallerID:5943458989]:[CN:2325946616]:[[CC_RATE_ENGINE_ALL_CALCULTIMEOUT: k=0 - res_calcultimeout:3300]]
[22/03/2009 15:28:36]:[file:Class.A2Billing.php - line:763]:[CallerID:5943458989]:[CN:2325946616]:[RES_ALL_CALCULTIMEOUT ::> 1]
[22/03/2009 15:28:36]:[file:Class.A2Billing.php - line:780]:[CallerID:5943458989]:[CN:2325946616]:[TIMEOUT::> 3300 : minutes=55 - seconds=0]
[22/03/2009 15:28:36]:[file:Class.A2Billing.php - line:1197]:[CallerID:5943458989]:[CN:2325946616]:[[SAY RATE ::> 45]]
[22/03/2009 15:28:36]:[file:Class.RateEngine.php - line:1012]:[CallerID:5943458989]:[CN:2325946616]:[app_callingcard: Dialing 'SIP/15944004343@voip-provider,60,HRgrL(3300000:61000:30000)' with timeout of '3300'.
]
[22/03/2009 15:28:36]:[file:Class.RateEngine.php - line:1037]:[CallerID:5943458989]:[CN:2325946616]:[app_callingcard: CIDGROUPID='-1' OUTBOUND CID SELECTED IS '0'.]
[22/03/2009 15:43:22]:[file:Class.RateEngine.php - line:1042]:[CallerID:5943458989]:[CN:2325946616]:[DIAL SIP/15944004343@voip-provider,60,HRgrL(3300000:61000:30000)]
[22/03/2009 15:43:22]:[file:Class.RateEngine.php - line:1139]:[CallerID:5943458989]:[CN:2325946616]:[-> dialstatus : ANSWER, answered time is 871
]
[22/03/2009 15:43:22]:[file:Class.RateEngine.php - line:1143]:[CallerID:5943458989]:[CN:2325946616]:[[USEDRATECARD=0]]
[22/03/2009 15:43:22]:[file:Class.RateEngine.php - line:820]:[CallerID:5943458989]:[CN:2325946616]:[ft2c_package_offer : 0 ; 0 ; 0]
[22/03/2009 15:43:22]:[file:Class.RateEngine.php - line:646]:[CallerID:5943458989]:[CN:2325946616]:[[CC_RATE_ENGINE_CALCULCOST: K=0 - CALLDURATION:871 - freetimetocall_used=0]]
[22/03/2009 15:43:22]:[file:Class.RateEngine.php - line:685]:[CallerID:5943458989]:[CN:2325946616]:[[TEMP - CC_RATE_ENGINE_CALCULCOST: 1. COST: -6.75]:[ (900/60) * 0.45 ]]
[22/03/2009 15:43:22]:[file:Class.RateEngine.php - line:762]:[CallerID:5943458989]:[CN:2325946616]:[[CC_RATE_ENGINE_CALCULCOST: K=0 - BUYCOST: -0.285 - SELLING COST: -6.75]]
[22/03/2009 15:43:22]:[file:Class.RateEngine.php - line:875]:[CallerID:5943458989]:[CN:2325946616]:[[CC_RATE_ENGINE_UPDATESYSTEM: usedratecard K=0 - (sessiontime=871 :: dialstatus=ANSWER :: buycost=0.285 :: cost=-6.75 : signe_cc_call=+: signe=-)]]
[22/03/2009 15:43:22]:[file:Class.RateEngine.php - line:899]:[CallerID:5943458989]:[CN:2325946616]:[[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 ('1237750102.150', 'SIP/7544000-b581a9a0', '2325946616', '', CURRENT_TIMESTAMP - INTERVAL 871 SECOND , '871', '15944004343', 'ANSWER', now(), '0.45', '+6.75', '', '', 'united states - fl - miami-dade', '8', '11', '91388', '6', '5943458989', '0', '0.019', '0.285', '0')]]
[22/03/2009 15:43:22]:[file:Class.RateEngine.php - line:902]:[CallerID:5943458989]:[CN:2325946616]:[[CC_asterisk_stop 1.1: SQL: DONE : result=1]]
[22/03/2009 15:43:22]:[file:Class.RateEngine.php - line:920]:[CallerID:5943458989]:[CN:2325946616]:[[CC_asterisk_stop 1.2: SQL: UPDATE cc_card SET credit= credit-6.75 , redial='15944004343' , lastuse=now(), nbused=nbused+1 WHERE username='2325946616']]
[22/03/2009 15:43:22]:[file:Class.RateEngine.php - line:925]:[CallerID:5943458989]:[CN:2325946616]:[UPDATE cc_trunk SET secondusedreal = secondusedreal + 871 WHERE id_trunk='6']
[22/03/2009 15:43:22]:[file:Class.RateEngine.php - line:929]:[CallerID:5943458989]:[CN:2325946616]:[UPDATE cc_tariffplan SET secondusedreal = secondusedreal + 871 WHERE id='11']
[22/03/2009 15:43:22]:[file:Class.A2Billing.php - line:1148]:[CallerID:5943458989]:[CN:2325946616]:[[CURRENCY : USD]]
[22/03/2009 15:43:22]:[file:a2billing.php - line:312]:[CallerID:5943458989]:[CN:2325946616]:[[a2billing account stop]]
[22/03/2009 15:43:22]:[file:a2billing.php - line:172]:[CallerID:5943458989]:[CN:2325946616]:[[CHANNEL STATUS : = Channel is down and available]]
[22/03/2009 15:43:22]:[file:a2billing.php - line:173]:[CallerID:5943458989]:[CN:2325946616]:[[CREDIT : 18.25][CREDIT MIN_CREDIT_2CALL : 0]]
[22/03/2009 15:43:22]:[file:Class.A2Billing.php - line:654]:[CallerID:5943458989]:[CN:2325946616]:[[CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse-1 WHERE username='2325946616']]
[22/03/2009 15:43:22]:[CallerID:5943458989]:[CN:2325946616]:[[STOP - EXIT]]
NOTICE THIS LINE - 900/60 - This happens in every call made from a2billing as if something is stopping the call at 900 seconds
[22/03/2009 15:43:22]:[file:Class.RateEngine.php - line:685]:[CallerID:5943458989]:[CN:2325946616]:[[TEMP - CC_RATE_ENGINE_CALCULCOST: 1. COST: -6.75]:[ (900/60) * 0.45 ]]
Also this line it ranges from 865-875 (i guess depending on the ring time)
[22/03/2009 15:43:22]:[file:Class.RateEngine.php - line:1139]:[CallerID:5943458989]:[CN:2325946616]:[-> dialstatus : ANSWER, answered time is 871
; ASTERISK extension.conf CONFIGURATION
exten => +5943432345,1,Set(__FROM_DID=${EXTEN})
exten => +5943432345,n,ExecIf($[ "${CALLERID(name)}" = "" ]?Set,CALLERID(name)=${CALLERID(num)}))
exten => +5943432345,n,Set(__CALLINGPRES_SV=${CALLINGPRES_${CALLINGPRES}})
exten => +5943432345,n,Set(CALLERPRES()=allowed_not_screened)
exten => +5943432345,n,AGI(a2billing.php,1)
exten => +5943432345,n,Hangup
;A2BILLING CONFIGURATION
[database]
hostname = localhost
port = 5432
user = a2buser
password = a2bpass
dbname = mya2billing
;dbtype = postgres
dbtype = mysql
[global]
interval_len_cardnumber = 10-15
len_aliasnumber = 15
len_voucher = 15
base_currency = usd
invoice_image = asterisk01.jpg
didbilling_daytopay = 5
admin_email =
[email protected]
; MANAGER CONNECTION PARAMETERS
manager_host = localhost
manager_username = myusername
manager_secret = mysecret
; CALL-BACK
[callback]
context_callback = a2billing-callback
extension = 1000
sec_wait_before_callback = 10
sec_avoid_repeate = 30
timeout = 20
answer_call = yes
nb_predictive_call = 10
nb_day_wait_before_retry = 1
context_preditctivedialer = a2billing-predictivedialer
predictivedialer_maxtime_tocall = 5400
callerid = 123456
all_callback_tariff = 1
id_server_group = 1
callback_audio_intro = prepaid-callback_intro
; CUSTOMISATION Of THE CUSTOMER INTERFACE
[webcustomerui]
signup_page_url =
paymentmethod = yes
personalinfo = yes
customerinfo = yes
sipiaxinfo = no
cdr = yes
invoice = yes
voucher = no
paypal = yes
speeddial = yes
did = no
ratecard = yes
simulator = yes
callback = no
predictivedialer = no
webphone = no
webphoneserver = localhost
callerid = yes
password = yes
limit_callerid = 10
error_email =
[email protected]
return_url_distant_login =
return_url_distant_forgetpassword =
;SIP & IAX client configuration information.
[sip-iax-info]
sip_iax_info_trunkname = call-labs
sip_iax_info_allowcodec = g729
sip_iax_info_host = call-labs.com
iax_additional_parameters = "canreinvite = no"
sip_additional_parameters = "trustrpid = yes | sendrpid = yes | canreinvite = no"
; ELECTRONIC PAYMENT
[epayment_method]
enable = yes
http_server = "http://server.callingcard.com"
https_server = "http://server.callingcard.com"
http_cookie_domain = 26.63.165.200
https_cookie_domain = 26.63.165.200
http_cookie_path = "/clients/"
https_cookie_path = "/clients/"
dir_ws_http_catalog = "/clients/"
dir_ws_https_catalog = "/clients/"
enable_ssl = no
http_domain = 26.63.165.200
dir_ws_http = "/var/www/html/clients/"
; payment_notify_url=...
purchase_amount = 1:2:3:5:10:20
item_name = "Credit Purchase"
currency_code = USD
;paypal_payment_url = "https://www.sandbox.paypal.com/cgi-bin/webscr"
;paypal_verify_url = "ssl://www.paypal.com"
;paypal_verify_url =
www.sandbox.paypal.com
;authorize_payment_url = "https://secure.authorize.net/gateway/transact.dll"
;authorize_payment_url = "https://test.authorize.net/gateway/transact.dll"
store_name = Calling Card Store
transaction_key = asdf1212fasd121554sd4f5s45sdf
moneybookers_secretword = areski
; SIGNUP MODULE
[signup]
enable_signup = 1
enable_captcha = YES
credit = 0
callplan_id_list = 1, 2
activated = no
simultaccess = 0
typepaid = 0
creditlimit = 0
runservice = 0
enableexpire = 0
expirationdate =
expiredays = 0
sip_account = yes
iax_account = yes
activatedbyuser = no
urlcustomerinterface =
http://server.callingcard.com/clients/
reload_asterisk_if_sipiax_created = no
;BACK-UP AND RESTORE
[backup]
backup_path = /tmp
gzip_exe = /bin/gzip
gunzip_exe = /bin/gunzip
mysqldump = /usr/bin/mysqldump
pg_dump = /usr/bin/pg_dump
mysql = /usr/bin/mysql
psql = /usr/bin/psql
; WEB INTERFACE AND API CONFIGURATION
[webui]
buddy_sip_file = /etc/asterisk/additional_a2billing_sip.conf
buddy_iax_file = /etc/asterisk/additional_a2billing_iax.conf
api_security_key = Ae87v56zzl34v
api_ip_auth = 127.0.0.1
email_admin =
[email protected]
dir_store_mohmp3 = /var/lib/asterisk/mohmp3
num_musiconhold_class = 5
show_help = YES
my_max_file_size_import = 1024000 ; 1 MG
dir_store_audio = /var/lib/asterisk/sounds/a2billing
my_max_file_size_audio=3072000 ; in bytes
file_ext_allow = gsm, mp3, wav
file_ext_allow_musiconhold = mp3
link_audio_file = NO
monitor_path = /var/spool/asterisk/monitor
monitor_formatfile = gsm
show_icon_invoice = YES
show_top_frame = NO
currency_choose = usd, eur, cad, hkd
card_export_field_list = id, username, useralias, lastname, credit, tariff, activated, language, inuse, currency, sip_buddy, iax_buddy, nbused, mac_addr
voucher_export_field_list = id, voucher, credit, tag, activated, usedcardnumber, usedate, currency
advanced_mode = yes
delete_fk_card = yes
[peer_friend]
type = friend
allow = ulaw,alaw,gsm,g729
context = a2billing
nat = "yes"
amaflag = billing
qualify = "yes"
host = dynamic
dtmfmode = RFC2833
[log-files]
cront_alarm = /tmp/cront_a2b_alarm.log
cront_autorefill = /tmp/cront_a2b_autorefill.log
cront_batch_process = /tmp/cront_a2b_batch_process.log
cront_bill_diduse = /tmp/cront_a2b_bill_diduse.log
cront_subscriptionfee = /tmp/cront_a2b_subscription_fee.log
cront_currency_update = /tmp/cront_a2b_currency_update.log
cront_invoice = /tmp/cront_a2b_invoice.log
cront_check_account = /tmp/cront_a2b_check_account.log
paypal = /tmp/a2billing_paypal.log
epayment = /tmp/a2billing_epayment.log
api_ecommerce = /tmp/api_ecommerce_request.log
api_callback = /tmp/api_callback_request.log
agi = /tmp/a2billing_agi.log
[agi-conf1]
debug = 0
asterisk_version = 1_2
answer_call = YES
play_audio = YES
say_goodbye = YES
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 = NO
no_auth_dnid = 2400,2300
number_try = 3
force_callplan_id =
say_balance_after_auth = YES
say_balance_after_call = YES
say_rateinitial = YES
say_timetocall = YES
auto_setcallerid = YES
force_callerid =
cid_sanitize = NO
cid_enable = YES
cid_askpincode_ifnot_callerid = YES
cid_auto_assign_card_to_cid = NO
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 = 9
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 = ",60,HRgrL(%timeout%:61000:30000)"
dialcommand_param_sipiax_friend = ""
switchdialcommand = YES
failover_recursive_limit = 2
maxtime_tocall_negatif_free_route = 5400
send_reminder = YES
record_call = NO
monitor_formatfile = gsm
agi_force_currency =
currency_association = 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