| 1 |
; |
|---|
| 2 |
; config file for the A2Billing Callingcard platform |
|---|
| 3 |
; |
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
; Global Database Setup - select the database type and authentication as required. |
|---|
| 7 |
|
|---|
| 8 |
[database] |
|---|
| 9 |
hostname = localhost |
|---|
| 10 |
port = 5432 |
|---|
| 11 |
user = a2billinguser |
|---|
| 12 |
password = a2billing |
|---|
| 13 |
dbname = mya2billing |
|---|
| 14 |
dbtype = postgres |
|---|
| 15 |
;dbtype = mysql |
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
[global] |
|---|
| 19 |
; len_cardnumber is removed |
|---|
| 20 |
; interval for the length of the cardnumber (number of digits), minimum lenght is 4 |
|---|
| 21 |
; ie: 10-15 (cardnumber authorised 10, 11, 12, 13, 14, 15) ; 10,12,14 (cardnumber authorised 10, 12, 14) |
|---|
| 22 |
interval_len_cardnumber = 10-15 |
|---|
| 23 |
|
|---|
| 24 |
; Alias-Card length |
|---|
| 25 |
len_aliasnumber = 15 |
|---|
| 26 |
|
|---|
| 27 |
; Voucher length |
|---|
| 28 |
len_voucher = 15 |
|---|
| 29 |
|
|---|
| 30 |
;base currency define the default currency that you want to use to setup your system (see the currency table to know the currency code) |
|---|
| 31 |
base_currency = usd |
|---|
| 32 |
|
|---|
| 33 |
; filename of the image that will be display at the top of the invoice (if not defined no image will appear ; path to place the image templates/default/images/) |
|---|
| 34 |
; the type of file have to be a jpeg/jpg |
|---|
| 35 |
invoice_image = asterisk01.jpg |
|---|
| 36 |
|
|---|
| 37 |
; DID Billing - amount of day before the end of the monthly reservation to bill the customer to for the DID use |
|---|
| 38 |
; if the user dont have enough credit he will get an email asking him to refill |
|---|
| 39 |
didbilling_daytopay = 5 |
|---|
| 40 |
|
|---|
| 41 |
;webiste administrator email address |
|---|
| 42 |
admin_email = areski@gmail.com |
|---|
| 43 |
|
|---|
| 44 |
; MANAGER CONNECTION PARAMETERS |
|---|
| 45 |
manager_host = localhost |
|---|
| 46 |
manager_username = myasterisk |
|---|
| 47 |
manager_secret = mycode |
|---|
| 48 |
|
|---|
| 49 |
|
|---|
| 50 |
; CALL-BACK |
|---|
| 51 |
[callback] |
|---|
| 52 |
; When web call-back is enabled this is the context to sent the call. |
|---|
| 53 |
context_callback = a2billing-callback |
|---|
| 54 |
|
|---|
| 55 |
; this is the Extension to redirect the call when the web callback is returned |
|---|
| 56 |
extension = 1000 |
|---|
| 57 |
|
|---|
| 58 |
; this is the number of seconds to wait before initiating the call back. |
|---|
| 59 |
sec_wait_before_callback = 10 |
|---|
| 60 |
|
|---|
| 61 |
;Number of seconds before the call-back can be re-initiated from the web page |
|---|
| 62 |
; to prevent repeated and unwanted calls. |
|---|
| 63 |
sec_avoid_repeate = 30 |
|---|
| 64 |
|
|---|
| 65 |
; if the callback doesnt succeed within the value below, then the call is deemed to have failed. |
|---|
| 66 |
timeout = 20 |
|---|
| 67 |
|
|---|
| 68 |
; if we want to manage the answer on the call |
|---|
| 69 |
; Disabling this for callback trigger numbers makes it ring not hang up. |
|---|
| 70 |
answer_call = yes |
|---|
| 71 |
|
|---|
| 72 |
|
|---|
| 73 |
; PREDICTIVE DIALER |
|---|
| 74 |
; number of calls an agent will do when the call button is clicked |
|---|
| 75 |
nb_predictive_call = 10 |
|---|
| 76 |
|
|---|
| 77 |
; Number of days to wait before the number becomes available to call again. |
|---|
| 78 |
nb_day_wait_before_retry = 1 |
|---|
| 79 |
|
|---|
| 80 |
; The context to redirect the call for the predictive dialer |
|---|
| 81 |
context_preditctivedialer = a2billing-predictivedialer |
|---|
| 82 |
|
|---|
| 83 |
|
|---|
| 84 |
; When a call is made we need to limit the call duration : amount in seconds |
|---|
| 85 |
predictivedialer_maxtime_tocall = 5400 |
|---|
| 86 |
|
|---|
| 87 |
; set the callerID for the predictive dialer and call-back |
|---|
| 88 |
callerid = 123456 |
|---|
| 89 |
|
|---|
| 90 |
; ID Call Plan to use when you use the all-callback mode, check the ID in the "list Call Plan" - WebUI |
|---|
| 91 |
all_callback_tariff = 1 |
|---|
| 92 |
|
|---|
| 93 |
; Define the group of servers that are going to be used by the callback |
|---|
| 94 |
id_server_group = 1 |
|---|
| 95 |
|
|---|
| 96 |
; Audio intro message when the callback is initiate |
|---|
| 97 |
callback_audio_intro = prepaid-callback_intro |
|---|
| 98 |
|
|---|
| 99 |
|
|---|
| 100 |
; CUSTOMISATION Of THE CUSTOMER INTERFACE |
|---|
| 101 |
[webcustomerui] |
|---|
| 102 |
|
|---|
| 103 |
; url of the signup page to show up on the sign in page (if empty no link will show up) |
|---|
| 104 |
signup_page_url = |
|---|
| 105 |
|
|---|
| 106 |
;Enable or disable the payment methods; yes for multi-payment or no for single payment method option |
|---|
| 107 |
paymentmethod = yes |
|---|
| 108 |
|
|---|
| 109 |
;Enable or disable the page which allow customer to modify its personal information |
|---|
| 110 |
personalinfo = yes |
|---|
| 111 |
|
|---|
| 112 |
; Enable display of the payment interface - yes or no |
|---|
| 113 |
customerinfo = yes |
|---|
| 114 |
|
|---|
| 115 |
; Enable display of the sip/iax info - yes or no |
|---|
| 116 |
sipiaxinfo = yes |
|---|
| 117 |
|
|---|
| 118 |
; Enable the Call history - yes or no |
|---|
| 119 |
cdr = yes |
|---|
| 120 |
|
|---|
| 121 |
; Enable invoices - yes or no |
|---|
| 122 |
invoice = yes |
|---|
| 123 |
|
|---|
| 124 |
; Enable the voucher screen - yes or no |
|---|
| 125 |
voucher = yes |
|---|
| 126 |
|
|---|
| 127 |
; Enable the paypal payment buttons - yes or no |
|---|
| 128 |
paypal = yes |
|---|
| 129 |
|
|---|
| 130 |
; Allow Speed Dial capabilities - yes or no |
|---|
| 131 |
speeddial = yes |
|---|
| 132 |
|
|---|
| 133 |
; Enable the DID (Direct Inwards Dialling) interface - yes or no |
|---|
| 134 |
did = yes |
|---|
| 135 |
|
|---|
| 136 |
; Show the ratecards - yes or no |
|---|
| 137 |
ratecard = yes |
|---|
| 138 |
|
|---|
| 139 |
; Offer simulator option on the customer interface - yes or no |
|---|
| 140 |
simulator = yes |
|---|
| 141 |
|
|---|
| 142 |
; Enable the callback option on the customer interface - yes or no |
|---|
| 143 |
callback = yes |
|---|
| 144 |
|
|---|
| 145 |
; Enable the predictivedialer option on the customer interface - yes or no |
|---|
| 146 |
predictivedialer = yes |
|---|
| 147 |
|
|---|
| 148 |
; Let users use SIP/IAX Webphone (Options : yes/no) |
|---|
| 149 |
webphone = no |
|---|
| 150 |
|
|---|
| 151 |
;IP address or domain name of asterisk server that would be used by the web-phone |
|---|
| 152 |
webphoneserver = localhost |
|---|
| 153 |
|
|---|
| 154 |
; Let the users add new callerid |
|---|
| 155 |
callerid = yes |
|---|
| 156 |
|
|---|
| 157 |
; Let the user change the webui password |
|---|
| 158 |
password = yes |
|---|
| 159 |
|
|---|
| 160 |
; The total number of callerIDs for CLI Recognition that can be add by the customer |
|---|
| 161 |
limit_callerid = 5 |
|---|
| 162 |
|
|---|
| 163 |
; Email address to send the notification and error report - new DIDs assigned will also be emailed. |
|---|
| 164 |
error_email = root@localhost |
|---|
| 165 |
|
|---|
| 166 |
; URL for specific return if an error occur after login |
|---|
| 167 |
return_url_distant_login = |
|---|
| 168 |
|
|---|
| 169 |
; URL for specific return if an error occur after forgetpassword |
|---|
| 170 |
return_url_distant_forgetpassword = |
|---|
| 171 |
|
|---|
| 172 |
|
|---|
| 173 |
;SIP & IAX client configuration information. |
|---|
| 174 |
[sip-iax-info] |
|---|
| 175 |
|
|---|
| 176 |
;Trunk Name to show in sip/iax info |
|---|
| 177 |
sip_iax_info_trunkname = call-labs |
|---|
| 178 |
|
|---|
| 179 |
;Allowed Codec, ulaw, gsm, g729 |
|---|
| 180 |
; use multi value without spaces : "gsm,ulaw,g729" |
|---|
| 181 |
sip_iax_info_allowcodec = g729 |
|---|
| 182 |
|
|---|
| 183 |
;host information |
|---|
| 184 |
sip_iax_info_host = call-labs.com |
|---|
| 185 |
|
|---|
| 186 |
;IAX Additional Parameters |
|---|
| 187 |
iax_additional_parameters = "canreinvite = no" |
|---|
| 188 |
|
|---|
| 189 |
;SIP Additional Parameters |
|---|
| 190 |
sip_additional_parameters = "trustrpid = yes | sendrpid = yes | canreinvite = no" |
|---|
| 191 |
|
|---|
| 192 |
[epayment_method] |
|---|
| 193 |
enable = yes |
|---|
| 194 |
; eg, http://localhost - should not be empty for productive servers |
|---|
| 195 |
http_server = "http://www.call-labs.com" |
|---|
| 196 |
; eg, https://localhost - Enter here your Secure Server Address, should not be empty for productive servers |
|---|
| 197 |
https_server = "http://www.call-labs.com" |
|---|
| 198 |
; Enter your Domain Name or IP Address, eg, 26.63.165.200 |
|---|
| 199 |
http_cookie_domain = 26.63.165.200 |
|---|
| 200 |
; Enter your Secure server Domain Name or IP Address, eg, 26.63.165.200 |
|---|
| 201 |
https_cookie_domain = 26.63.165.200 |
|---|
| 202 |
; Enter the Physical path of your Application on your server |
|---|
| 203 |
http_cookie_path = "/A2BCustomer_UI/" |
|---|
| 204 |
; Enter the Physical path of your Application on your Secure Server |
|---|
| 205 |
https_cookie_path = "/A2BCustomer_UI/" |
|---|
| 206 |
; Enter the Physical path of your Application on your server |
|---|
| 207 |
dir_ws_http_catalog = "/A2BCustomer_UI/" |
|---|
| 208 |
; Enter the Physical path of your Application on your Secure Server |
|---|
| 209 |
dir_ws_https_catalog = "/A2BCustomer_UI/" |
|---|
| 210 |
; secure webserver for checkout procedure? |
|---|
| 211 |
enable_ssl = yes |
|---|
| 212 |
|
|---|
| 213 |
http_domain = 26.63.165.200 |
|---|
| 214 |
|
|---|
| 215 |
dir_ws_http = "/~areski/svn/a2billing/payment/A2BCustomer_UI/" |
|---|
| 216 |
|
|---|
| 217 |
; maybe try with : |
|---|
| 218 |
; Define here the URL to notify the payment |
|---|
| 219 |
; payment_notify_url=... |
|---|
| 220 |
|
|---|
| 221 |
;define the different amount of purchase that would be available - 5 amount maximum (5:10:15) |
|---|
| 222 |
purchase_amount = 1:2:5:10:20 |
|---|
| 223 |
|
|---|
| 224 |
; Item name that would be display to the user when he will buy credit |
|---|
| 225 |
item_name = "Credit Purchase" |
|---|
| 226 |
|
|---|
| 227 |
; Currency for the Credit purchase, only one can be define here |
|---|
| 228 |
currency_code = USD |
|---|
| 229 |
|
|---|
| 230 |
; Define here the URL of paypal gateway the payment (to test with paypal sandbox) |
|---|
| 231 |
paypal_payment_url = "https://secure.paypal.com/cgi-bin/webscr" |
|---|
| 232 |
;paypal_payment_url = "https://www.sandbox.paypal.com/cgi-bin/webscr" |
|---|
| 233 |
|
|---|
| 234 |
; paypal transaction verification url |
|---|
| 235 |
paypal_verify_url = "ssl://www.paypal.com" |
|---|
| 236 |
;paypal_verify_url = www.sandbox.paypal.com |
|---|
| 237 |
|
|---|
| 238 |
; Define here the URL of Authorize gateway |
|---|
| 239 |
authorize_payment_url = "https://secure.authorize.net/gateway/transact.dll" |
|---|
| 240 |
;authorize_payment_url = "https://test.authorize.net/gateway/transact.dll" |
|---|
| 241 |
|
|---|
| 242 |
;paypal store name to show in the paypal site when customer will go to pay |
|---|
| 243 |
store_name = Asterisk2Billing |
|---|
| 244 |
|
|---|
| 245 |
;Transaction Key for security of Epayment Max length of 60 Characters. |
|---|
| 246 |
transaction_key = asdf1212fasd121554sd4f5s45sdf |
|---|
| 247 |
|
|---|
| 248 |
;Moneybookers secret word |
|---|
| 249 |
moneybookers_secretword = areski |
|---|
| 250 |
|
|---|
| 251 |
; SIGNUP MODULE |
|---|
| 252 |
[signup] |
|---|
| 253 |
; enable the signup module |
|---|
| 254 |
enable_signup = 1 |
|---|
| 255 |
|
|---|
| 256 |
; enable Captcha on the signup module (value : YES or NO) |
|---|
| 257 |
enable_captcha = YES |
|---|
| 258 |
|
|---|
| 259 |
; amount of credit applied to a new user. |
|---|
| 260 |
credit = 0 |
|---|
| 261 |
|
|---|
| 262 |
; the list of id of call plans which will be shown in signup. |
|---|
| 263 |
callplan_id_list = 1, 2 |
|---|
| 264 |
|
|---|
| 265 |
; Specify whether the card is created as active or pending |
|---|
| 266 |
activated = no |
|---|
| 267 |
|
|---|
| 268 |
; Simultaneous or non concurrent access with the card - 0 = INDIVIDUAL ACCESS or 1 = SIMULTANEOUS ACCESS |
|---|
| 269 |
simultaccess = 0 |
|---|
| 270 |
|
|---|
| 271 |
;PREPAID CARD = 0 - POSTPAY CARD = 1 |
|---|
| 272 |
typepaid = 0 |
|---|
| 273 |
|
|---|
| 274 |
; Define credit limit, which is only used for a POSTPAY card. |
|---|
| 275 |
creditlimit = 0 |
|---|
| 276 |
|
|---|
| 277 |
; Authorise the recurring service to apply on this card - Yes 1 - No 0 |
|---|
| 278 |
runservice = 0 |
|---|
| 279 |
|
|---|
| 280 |
; Enable the expiry of the card - Yes 1 - No 0 |
|---|
| 281 |
enableexpire = 0 |
|---|
| 282 |
|
|---|
| 283 |
; Expiry Date format YYYY-MM-DD HH:MM:SS. For instance, '2004-12-31 00:00:00' |
|---|
| 284 |
expirationdate = |
|---|
| 285 |
|
|---|
| 286 |
; The number of days after which the card will expire |
|---|
| 287 |
expiredays = 0 |
|---|
| 288 |
|
|---|
| 289 |
; Create a sip account from signup ( default : yes ) |
|---|
| 290 |
sip_account = yes |
|---|
| 291 |
|
|---|
| 292 |
; Create an iax account from signup ( default : yes ) |
|---|
| 293 |
iax_account = yes |
|---|
| 294 |
|
|---|
| 295 |
; active card after the new signup. if No, the Signup confirmation is needed and an email will be sent |
|---|
| 296 |
; to the user with a link for activation (need to put the link into the Signup mail template) |
|---|
| 297 |
activatedbyuser = no |
|---|
| 298 |
|
|---|
| 299 |
; url of the customer interface to display after activation |
|---|
| 300 |
urlcustomerinterface = http://localhost/A2BCustomer_UI/ |
|---|
| 301 |
|
|---|
| 302 |
; Define if you want to reload Asterisk when a SIP / IAX Friend is created at signup time |
|---|
| 303 |
reload_asterisk_if_sipiax_created = no |
|---|
| 304 |
|
|---|
| 305 |
|
|---|
| 306 |
;BACK-UP AND RESTORE |
|---|
| 307 |
; configuration for backup and restore |
|---|
| 308 |
[backup] |
|---|
| 309 |
|
|---|
| 310 |
; Path to store backup of database |
|---|
| 311 |
backup_path = /tmp |
|---|
| 312 |
|
|---|
| 313 |
; path for gzip |
|---|
| 314 |
gzip_exe = /bin/gzip |
|---|
| 315 |
|
|---|
| 316 |
; path for gunzip |
|---|
| 317 |
gunzip_exe = /bin/gunzip |
|---|
| 318 |
|
|---|
| 319 |
; path for mysqldump |
|---|
| 320 |
mysqldump = /usr/bin/mysqldump |
|---|
| 321 |
|
|---|
| 322 |
; path for pg_dump |
|---|
| 323 |
pg_dump = /usr/bin/pg_dump |
|---|
| 324 |
|
|---|
| 325 |
; path for mysql |
|---|
| 326 |
mysql = /usr/bin/mysql |
|---|
| 327 |
|
|---|
| 328 |
;path for psql |
|---|
| 329 |
psql = /usr/bin/psql |
|---|
| 330 |
|
|---|
| 331 |
|
|---|
| 332 |
|
|---|
| 333 |
; WEB INTERFACE AND API CONFIGURATION |
|---|
| 334 |
[webui] |
|---|
| 335 |
|
|---|
| 336 |
; Path to store the asterisk configuration files SIP & IAX |
|---|
| 337 |
buddy_sip_file = /etc/asterisk/additional_a2billing_sip.conf |
|---|
| 338 |
buddy_iax_file = /etc/asterisk/additional_a2billing_iax.conf |
|---|
| 339 |
|
|---|
| 340 |
; API have a security key to validate the http request, the key has to be sent after applying md5 |
|---|
| 341 |
; Valid characters are [a-z,A-Z,0-9] |
|---|
| 342 |
api_security_key = Ae87v56zzl34v |
|---|
| 343 |
|
|---|
| 344 |
; API to restrict the IP's authorised to make a request. |
|---|
| 345 |
; Define The the list of ips separated by ; |
|---|
| 346 |
api_ip_auth = 127.0.0.1 |
|---|
| 347 |
|
|---|
| 348 |
; Administative Email(not used yet) |
|---|
| 349 |
email_admin = root@localhost |
|---|
| 350 |
|
|---|
| 351 |
; MOH (Music on Hold) base directory |
|---|
| 352 |
dir_store_mohmp3 = /var/lib/asterisk/mohmp3 |
|---|
| 353 |
|
|---|
| 354 |
; Number of MOH classes you have created in musiconhold.conf : acc_1, acc_2... acc_10 class etc... |
|---|
| 355 |
num_musiconhold_class = 10 |
|---|
| 356 |
|
|---|
| 357 |
; Display the help section inside the admin interface (YES - NO) |
|---|
| 358 |
show_help = YES |
|---|
| 359 |
|
|---|
| 360 |
; File Upload parameters |
|---|
| 361 |
; PLEASE CHECK ALSO THE VALUE IN YOUR PHP.INI THE LIMIT IS 2MG BY DEFAULT |
|---|
| 362 |
my_max_file_size_import = 1024000 ; 1 MG |
|---|
| 363 |
|
|---|
| 364 |
; Not used yet, The goal is to upload files and use them in the IVR |
|---|
| 365 |
dir_store_audio = /var/lib/asterisk/sounds/a2billing |
|---|
| 366 |
|
|---|
| 367 |
; upload maximum file size |
|---|
| 368 |
my_max_file_size_audio=3072000 ; in bytes |
|---|
| 369 |
|
|---|
| 370 |
; File type extensions permitted to be uploaded such as "gsm, mp3, wav" (separated by ,) |
|---|
| 371 |
file_ext_allow = gsm, mp3, wav |
|---|
| 372 |
|
|---|
| 373 |
; File type extensions permitted to be uploaded for the musiconhold such as "gsm, mp3, wav" (separate by ,) |
|---|
| 374 |
file_ext_allow_musiconhold = mp3 |
|---|
| 375 |
|
|---|
| 376 |
|
|---|
| 377 |
; RECORDED CONVERSATIONS |
|---|
| 378 |
|
|---|
| 379 |
; Enable link on the CDR viewer to the recordings. (YES - NO) |
|---|
| 380 |
link_audio_file = NO |
|---|
| 381 |
|
|---|
| 382 |
|
|---|
| 383 |
; Path to link the recorded monitor files |
|---|
| 384 |
monitor_path = /var/spool/asterisk/monitor |
|---|
| 385 |
; grant access to apache user on read mode for the directory :> chmod 755 /var/spool/asterisk/monitor/ |
|---|
| 386 |
|
|---|
| 387 |
; FORMAT OF THE RECORDED MONITOR FILE |
|---|
| 388 |
monitor_formatfile = gsm |
|---|
| 389 |
|
|---|
| 390 |
; Display the icon in the invoice |
|---|
| 391 |
show_icon_invoice = YES |
|---|
| 392 |
|
|---|
| 393 |
;CURRENCY AND GENERAL SETTINGS |
|---|
| 394 |
|
|---|
| 395 |
; Display the top frame (useful if you want to save space on your little tiny screen ) |
|---|
| 396 |
show_top_frame = NO |
|---|
| 397 |
|
|---|
| 398 |
; Allow the customer to chose the most appropriate currency ("all" can be used) |
|---|
| 399 |
currency_choose = usd, eur, cad, hkd |
|---|
| 400 |
|
|---|
| 401 |
; field to export in csv format from cc_card table |
|---|
| 402 |
card_export_field_list = id, username, useralias, lastname, credit, tariff, activated, language, inuse, currency, sip_buddy, iax_buddy, nbused, mac_addr |
|---|
| 403 |
|
|---|
| 404 |
; field to export in csv format from cc_voucher table |
|---|
| 405 |
voucher_export_field_list = id, voucher, credit, tag, activated, usedcardnumber, usedate, currency |
|---|
| 406 |
|
|---|
| 407 |
; Advanced mode - Display additional configuration options on the ratecard (progressive rates, musiconhold, ...) |
|---|
| 408 |
advanced_mode = NO |
|---|
| 409 |
|
|---|
| 410 |
; Delete the SIP/IAX Friend & callerid when a card is deleted |
|---|
| 411 |
delete_fk_card = yes |
|---|
| 412 |
|
|---|
| 413 |
|
|---|
| 414 |
; This section is basically used when we create a new friend |
|---|
| 415 |
; when you create a SIP IAX friend for a card the following parameters will define the default value for the peer creation |
|---|
| 416 |
[peer_friend] |
|---|
| 417 |
; Refer to sip.conf & iax.conf documentation for the meaning of those parameters |
|---|
| 418 |
; sip.conf -> http://www.voip-info.org/wiki-Asterisk+config+sip.conf |
|---|
| 419 |
; iax.conf -> http://www.voip-info.org/wiki-Asterisk+config+iax.conf |
|---|
| 420 |
type = friend |
|---|
| 421 |
allow = ulaw,alaw,gsm,g729 |
|---|
| 422 |
context = a2billing |
|---|
| 423 |
; use "no" or "yes" with quote otherwise the value will be converted to 1 or 0 |
|---|
| 424 |
nat = "yes" |
|---|
| 425 |
amaflag = billing |
|---|
| 426 |
; use "no" or "yes" with quote otherwise the value will be converted to 1 or 0 |
|---|
| 427 |
qualify = "yes" |
|---|
| 428 |
host = dynamic |
|---|
| 429 |
dtmfmode = RFC2833 |
|---|
| 430 |
|
|---|
| 431 |
|
|---|
| 432 |
[log-files] |
|---|
| 433 |
; To disable application logging, remove/comment the log file name aside service |
|---|
| 434 |
|
|---|
| 435 |
; cront - recurring process |
|---|
| 436 |
cront_alarm = /tmp/cront_a2b_alarm.log |
|---|
| 437 |
cront_autorefill = /tmp/cront_a2b_autorefill.log |
|---|
| 438 |
cront_batch_process = /tmp/cront_a2b_batch_process.log |
|---|
| 439 |
cront_bill_diduse = /tmp/cront_a2b_bill_diduse.log |
|---|
| 440 |
cront_subscriptionfee = /tmp/cront_a2b_subscription_fee.log |
|---|
| 441 |
cront_currency_update = /tmp/cront_a2b_currency_update.log |
|---|
| 442 |
cront_invoice = /tmp/cront_a2b_invoice.log |
|---|
| 443 |
cront_check_account = /tmp/cront_a2b_check_account.log |
|---|
| 444 |
|
|---|
| 445 |
; paypal log file, to log all the transaction & error |
|---|
| 446 |
paypal = /tmp/a2billing_paypal.log |
|---|
| 447 |
|
|---|
| 448 |
; epayment log file, to log all the transaction & error |
|---|
| 449 |
epayment = /tmp/a2billing_epayment.log |
|---|
| 450 |
|
|---|
| 451 |
; Log file to store the ecommerce API requests |
|---|
| 452 |
api_ecommerce = /tmp/api_ecommerce_request.log |
|---|
| 453 |
|
|---|
| 454 |
; Log file to store the CallBack API requests |
|---|
| 455 |
api_callback = /tmp/api_callback_request.log |
|---|
| 456 |
|
|---|
| 457 |
; File to log |
|---|
| 458 |
agi = /tmp/a2billing_agi.log |
|---|
| 459 |
|
|---|
| 460 |
|
|---|
| 461 |
|
|---|
| 462 |
; configuration for the AGI, different configuration can be defined, ie "agi-conf1", "agi-conf2", etc... |
|---|
| 463 |
; the groupid parameter will define which process_sections to use. Usage : DeadAGI(a2billing.php|%groupid%) |
|---|
| 464 |
; by default agi-conf1 is used |
|---|
| 465 |
[agi-conf1] |
|---|
| 466 |
|
|---|
| 467 |
; the debug level |
|---|
| 468 |
; 0=none, 1=low, 2=normal, 3=all |
|---|
| 469 |
debug = 1 |
|---|
| 470 |
|
|---|
| 471 |
; Asterisk Version Information |
|---|
| 472 |
; 1_1,1_2,1_4 By Default it will take 1_2 or higher |
|---|
| 473 |
asterisk_version = 1_2 |
|---|
| 474 |
|
|---|
| 475 |
; Manage the answer on the call |
|---|
| 476 |
answer_call = YES |
|---|
| 477 |
|
|---|
| 478 |
; Play audio - this will disable all stream file but not the Get Data |
|---|
| 479 |
; for wholesale ensure that the authentication works and than number_try = 1 |
|---|
| 480 |
play_audio = YES |
|---|
| 481 |
|
|---|
| 482 |
; play the goodbye message when the user has finished. |
|---|
| 483 |
say_goodbye = NO |
|---|
| 484 |
|
|---|
| 485 |
; enable the menu to choose the language |
|---|
| 486 |
; press 1 for English, pulsa 2 para el español, Pressez 3 pour Français |
|---|
| 487 |
play_menulanguage = NO |
|---|
| 488 |
|
|---|
| 489 |
|
|---|
| 490 |
; force the use of a language, if you dont want to use it leave the option empty |
|---|
| 491 |
; Values : ES, EN, FR, etc... (according to the audio you have installed) |
|---|
| 492 |
force_language = |
|---|
| 493 |
|
|---|
| 494 |
; Introduction prompt : to specify an additional prompt to play at the beginning of the application |
|---|
| 495 |
intro_prompt = |
|---|
| 496 |
|
|---|
| 497 |
; Minimum amount of credit to use the application |
|---|
| 498 |
min_credit_2call = 0 |
|---|
| 499 |
|
|---|
| 500 |
; this is the minimum duration in seconds of a call in order to be billed |
|---|
| 501 |
; any call with a length less than min_duration_2bill will have a 0 cost |
|---|
| 502 |
; useful not to charge callers for system errors when a call was answered but it actually didn't connect |
|---|
| 503 |
min_duration_2bill = 0 |
|---|
| 504 |
|
|---|
| 505 |
; if user doesn't have enough credit to call a destination, prompt him to enter another cardnumber |
|---|
| 506 |
notenoughcredit_cardnumber = YES |
|---|
| 507 |
|
|---|
| 508 |
; if notenoughcredit_cardnumber = YES then assign the CallerID to the new cardnumber |
|---|
| 509 |
notenoughcredit_assign_newcardnumber_cid = YES |
|---|
| 510 |
|
|---|
| 511 |
|
|---|
| 512 |
; if YES it will use the DNID and try to dial out, without asking for the phonenumber to call |
|---|
| 513 |
; value : YES, NO |
|---|
| 514 |
use_dnid = NO |
|---|
| 515 |
|
|---|
| 516 |
; list the dnid on which you want to avoid the use of the previous option "use_dnid" |
|---|
| 517 |
no_auth_dnid = 2400,2300 |
|---|
| 518 |
|
|---|
| 519 |
; number of times the user can dial different number |
|---|
| 520 |
number_try = 3 |
|---|
| 521 |
|
|---|
| 522 |
; this will force to select a specific call plan by the Rate Engine |
|---|
| 523 |
force_callplan_id = |
|---|
| 524 |
|
|---|
| 525 |
; Play the balance to the user after the authentication (values : yes - no) |
|---|
| 526 |
say_balance_after_auth = YES |
|---|
| 527 |
|
|---|
| 528 |
; Play the balance to the user after the call (values : yes - no) |
|---|
| 529 |
say_balance_after_call = NO |
|---|
| 530 |
|
|---|
| 531 |
; Play the initial cost of the route (values : yes - no) |
|---|
| 532 |
say_rateinitial = NO |
|---|
| 533 |
|
|---|
| 534 |
; Play the amount of time that the user can call (values : yes - no) |
|---|
| 535 |
say_timetocall = YES |
|---|
| 536 |
|
|---|
| 537 |
|
|---|
| 538 |
; enable the setup of the callerID number before the outbound is made, by default the user callerID value will be use |
|---|
| 539 |
auto_setcallerid = YES |
|---|
| 540 |
|
|---|
| 541 |
; If auto_setcallerid is enabled, the value of force_callerid will be set as CallerID |
|---|
| 542 |
force_callerid = |
|---|
| 543 |
|
|---|
| 544 |
; If force_callerid is not set, then the following option ensures that CID is set to one of the card's configured caller IDs or blank if none available. |
|---|
| 545 |
; NO - disable this feature, caller ID can be anything. |
|---|
| 546 |
; CID - Caller ID must be one of the customers caller IDs |
|---|
| 547 |
; DID - Caller ID must be one of the customers DID nos. |
|---|
| 548 |
; BOTH - Caller ID must be one of the above two items. |
|---|
| 549 |
cid_sanitize = NO |
|---|
| 550 |
|
|---|
| 551 |
|
|---|
| 552 |
; enable the callerid authentication |
|---|
| 553 |
; if this option is active the CC system will check the CID of caller |
|---|
| 554 |
cid_enable = NO |
|---|
| 555 |
|
|---|
| 556 |
; if the CID does not exist, then the caller will be prompt to enter his cardnumber |
|---|
| 557 |
cid_askpincode_ifnot_callerid = YES |
|---|
| 558 |
|
|---|
| 559 |
; if the callerID authentication is enable and the authentication fails then the user will be prompt to enter his cardnumber |
|---|
| 560 |
; this option will bound the cardnumber entered to the current callerID so that next call will be directly authenticate |
|---|
| 561 |
cid_auto_assign_card_to_cid = YES |
|---|
| 562 |
|
|---|
| 563 |
; if the callerID is captured on a2billing, this option will create automatically a new card and add the callerID to it |
|---|
| 564 |
cid_auto_create_card = NO |
|---|
| 565 |
|
|---|
| 566 |
; set the length of the card that will be auto create (ie, 10) |
|---|
| 567 |
cid_auto_create_card_len = 10 |
|---|
| 568 |
|
|---|
| 569 |
; If cid_auto_create_card has been set to YES, the following options will define with which configuration we will create the card |
|---|
| 570 |
; |
|---|
| 571 |
; billing type of the new card |
|---|
| 572 |
; ( value : POSTPAY or PREPAY) |
|---|
| 573 |
cid_auto_create_card_typepaid = POSTPAY |
|---|
| 574 |
|
|---|
| 575 |
; amount of credit of the new card |
|---|
| 576 |
cid_auto_create_card_credit = 0 |
|---|
| 577 |
|
|---|
| 578 |
; if postpay, define the credit limit for the card |
|---|
| 579 |
cid_auto_create_card_credit_limit = 1000 |
|---|
| 580 |
|
|---|
| 581 |
; the tariffgroup to use for the new card (this is the ID that you can find on the admin web interface) |
|---|
| 582 |
cid_auto_create_card_tariffgroup = 6 |
|---|
| 583 |
|
|---|
| 584 |
; to check callerID over the cardnumber authentication (to guard against spoofing) |
|---|
| 585 |
callerid_authentication_over_cardnumber = NO |
|---|
| 586 |
|
|---|
| 587 |
; enable the option to call sip/iax friend for free (values : YES - NO) |
|---|
| 588 |
sip_iax_friends = NO |
|---|
| 589 |
|
|---|
| 590 |
; if SIP_IAX_FRIENDS is active, you can define a prefix for the dialed digits to call a pstn number |
|---|
| 591 |
; values : number |
|---|
| 592 |
sip_iax_pstn_direct_call_prefix = 555 |
|---|
| 593 |
|
|---|
| 594 |
; this will enable a prompt to enter your destination number. |
|---|
| 595 |
; if number start by sip_iax_pstn_direct_call_prefix we do directly a sip iax call, if not we do a normal call |
|---|
| 596 |
sip_iax_pstn_direct_call = NO |
|---|
| 597 |
|
|---|
| 598 |
; enable the option to refill card with voucher in IVR (values : YES - NO) |
|---|
| 599 |
ivr_voucher = NO |
|---|
| 600 |
|
|---|
| 601 |
; if ivr_voucher is active, you can define a prefix for the voucher number to refill your card |
|---|
| 602 |
; values : number - don't forget to change prepaid-refill_card_with_voucher audio accordingly |
|---|
| 603 |
ivr_voucher_prefix = 8 |
|---|
| 604 |
|
|---|
| 605 |
; When the user credit are below the minimum credit to call min_credit |
|---|
| 606 |
; jump directly to the voucher IVR menu (values: YES - NO) |
|---|
| 607 |
jump_voucher_if_min_credit = NO |
|---|
| 608 |
|
|---|
| 609 |
; Extracharge DIDs, multiple numbers and fees must be separated by comma |
|---|
| 610 |
; extracharge_did = 1800XXXXXXX,1888XXXXXXX |
|---|
| 611 |
extracharge_did = |
|---|
| 612 |
;extracharge_fee = 0.02,0.03 |
|---|
| 613 |
extracharge_fee = |
|---|
| 614 |
;extracharge_buyfee = 0.015,0.025 |
|---|
| 615 |
extracharge_buyfee = |
|---|
| 616 |
|
|---|
| 617 |
; List the prefixes that will be stripped off if the call plan requires it |
|---|
| 618 |
international_prefixes = 011,00,09 |
|---|
| 619 |
|
|---|
| 620 |
; More information about the Dial : http://voip-info.org/wiki-Asterisk+cmd+dial |
|---|
| 621 |
; 30 : The timeout parameter is optional. If not specifed, the Dial command will wait indefinitely, exiting only when the originating channel hangs up, or all the dialed channels return a busy or error condition. Otherwise it specifies a maximum time, in seconds, that the Dial command is to wait for a channel to answer. |
|---|
| 622 |
; H: Allow the caller to hang up by dialing * |
|---|
| 623 |
; r: Generate a ringing tone for the calling party |
|---|
| 624 |
; g: When the called party hangs up, exit to execute more commands in the current context. (new in 1.4) |
|---|
| 625 |
; i: Asterisk will ignore any forwarding (302 Redirect) requests received. Essential for DID usage to prevent fraud. (new in 1.4) Useful if you are ringing a group of people and one person has set their phone to forwarded direct to voicemail on their cell or something which normally prevents any of the other phones from ringing. |
|---|
| 626 |
; R: Indicate ringing to the calling party when the called party indicates ringing, pass no audio until answered. |
|---|
| 627 |
; m: Provide Music on Hold to the calling party until the called channel answers. |
|---|
| 628 |
; L(x[:y][:z]): Limit the call to 'x' ms, warning when 'y' ms are left, repeated every 'z' ms) |
|---|
| 629 |
; %timeout% tag is replaced by the calculated timeout according the credit & destination rate! |
|---|
| 630 |
|
|---|
| 631 |
dialcommand_param = "|60|HRgrL(%timeout%:61000:30000)" |
|---|
| 632 |
|
|---|
| 633 |
; by default (3600000 = 1HOUR MAX CALL) |
|---|
| 634 |
dialcommand_param_sipiax_friend = "|60|HRgirL(3600000:61000:30000)" |
|---|
| 635 |
|
|---|
| 636 |
; Define the order to make the outbound call |
|---|
| 637 |
; YES -> SIP/dialedphonenumber@gateway_ip - NO SIP/gateway_ip/dialedphonenumber |
|---|
| 638 |
; Both should work exactly the same but i experimented one case when gateway was supporting dialedphonenumber@gateway_ip |
|---|
| 639 |
; So in case of trouble, try it out |
|---|
| 640 |
switchdialcommand = NO |
|---|
| 641 |
|
|---|
| 642 |
; failover recursive search - define how many time we want to authorize the research of the failover trunk when a call fails (value : 0 - 20) |
|---|
| 643 |
failover_recursive_limit = 2 |
|---|
| 644 |
|
|---|
| 645 |
; For free calls, limit the duration: amount in seconds |
|---|
| 646 |
maxtime_tocall_negatif_free_route = 5400 |
|---|
| 647 |
|
|---|
| 648 |
; Send a reminder email to the user when they are under min_credit_2call |
|---|
| 649 |
send_reminder = NO |
|---|
| 650 |
|
|---|
| 651 |
; enable to monitor the call (to record all the conversations) |
|---|
| 652 |
; value : YES - NO |
|---|
| 653 |
record_call = NO |
|---|
| 654 |
|
|---|
| 655 |
; format of the recorded monitor file |
|---|
| 656 |
monitor_formatfile = gsm |
|---|
| 657 |
|
|---|
| 658 |
; Force to play the balance to the caller in a predefined currency, to use the currency set for by the customer leave this field empty |
|---|
| 659 |
agi_force_currency = |
|---|
| 660 |
|
|---|
| 661 |
; CURRENCY SECTION |
|---|
| 662 |
; Define all the audio (without file extensions) that you want to play according to currency (use , to separate, ie "usd:prepaid-dollar,mxn:pesos,eur:Euro,all:credit") |
|---|
| 663 |
currency_association = usd:dollars,mxn:pesos,eur:euros,all:credit |
|---|
| 664 |
|
|---|
| 665 |
; Please enter the file name you want to play when we prompt the calling party to enter the destination number |
|---|
| 666 |
; file_conf_enter_destination = prepaid-enter-number-u-calling-1-or-011 |
|---|
| 667 |
file_conf_enter_destination = prepaid-enter-dest |
|---|
| 668 |
|
|---|
| 669 |
; Please enter the file name you want to play when we prompt the calling party to choose the prefered language |
|---|
| 670 |
; file_conf_enter_menulang = prepaid-menulang |
|---|
| 671 |
file_conf_enter_menulang = prepaid-menulang2 |
|---|
| 672 |
|
|---|
| 673 |
; Define if you want to bill the 1st leg on callback even if the call is not connected to the destination |
|---|
| 674 |
callback_bill_1stleg_ifcall_notconnected = YES |
|---|