A2Billing Problemas al generar la llamada

Forums: 

:( Hola amigos

estoy teniendo un problema con el a2billing, resulta que hasta hace poco funcionaba muy bien generaba la llamada facturaba etc, todo perfecto sobre pruebas,una vez que vi que iba todo bien comence a cargar todos los prefijos de cada operador con listado de precios de cada uno de compra y venta etc, lo tipico.
el problema fue que una vez que termine de cargar todo cuando intento llamar me corta la llamada diciendo lo siguiente
Les pego lo que me tira en consola para que lo puedan analizar

Executing [662134xxx@a2billing:1] DeadAGI("SIP/102-08e31928", "a2billing.php|1") in new stack
[Sep 7 06:03:54] WARNING[7685]: res_agi.c:2116 deadagi_exec: Running DeadAGI on a live channel will cause problems, please use AGI
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
a2billing.php|1: A2Billing AGI internal configuration:
a2billing.php|1: Array
a2billing.php|1: (
a2billing.php|1: [debug] => 1
a2billing.php|1: [asterisk_version] => 1_4
a2billing.php|1: [answer_call] =>
a2billing.php|1: [play_audio] =>
a2billing.php|1: [say_goodbye] =>
a2billing.php|1: [play_menulanguage] =>
a2billing.php|1: [force_language] => es
a2billing.php|1: [intro_prompt] =>
a2billing.php|1: [min_credit_2call] => 0
a2billing.php|1: [min_duration_2bill] => 0
a2billing.php|1: [notenoughcredit_cardnumber] =>
a2billing.php|1: [notenoughcredit_assign_newcardnumber_cid] =>
a2billing.php|1: [use_dnid] =>
a2billing.php|1: [no_auth_dnid] => Array
a2billing.php|1: (
a2billing.php|1: [0] => 2400
a2billing.php|1: [1] => 2300
a2billing.php|1: )
a2billing.php|1:
a2billing.php|1: [number_try] => 1
a2billing.php|1: [force_callplan_id] =>
a2billing.php|1: [say_balance_after_auth] =>
a2billing.php|1: [say_balance_after_call] =>
a2billing.php|1: [say_rateinitial] =>
a2billing.php|1: [say_timetocall] =>
a2billing.php|1: [auto_setcallerid] =>
a2billing.php|1: [force_callerid] =>
a2billing.php|1: [cid_sanitize] => CID
a2billing.php|1: [cid_enable] => 1
a2billing.php|1: [cid_askpincode_ifnot_callerid] =>
a2billing.php|1: [cid_auto_assign_card_to_cid] =>
a2billing.php|1: [cid_auto_create_card] =>
a2billing.php|1: [cid_auto_create_card_len] => 4
a2billing.php|1: [cid_auto_create_card_typepaid] => PREPAY
a2billing.php|1: [cid_auto_create_card_credit] => 5
a2billing.php|1: [cid_auto_create_card_credit_limit] => 1000
a2billing.php|1: [cid_auto_create_card_tariffgroup] => 1
a2billing.php|1: [callerid_authentication_over_cardnumber] =>
a2billing.php|1: [sip_iax_friends] =>
a2billing.php|1: [sip_iax_pstn_direct_call_prefix] => 555
a2billing.php|1: [sip_iax_pstn_direct_call] =>
a2billing.php|1: [ivr_voucher] =>
a2billing.php|1: [ivr_voucher_prefix] => 8
a2billing.php|1: [jump_voucher_if_min_credit] =>
a2billing.php|1: [extracharge_did] => Array
a2billing.php|1: (
a2billing.php|1: [0] =>
a2billing.php|1: )
a2billing.php|1:
a2billing.php|1: [extracharge_fee] => Array
a2billing.php|1: (
a2billing.php|1: [0] =>
a2billing.php|1: )
a2billing.php|1:
a2billing.php|1: [extracharge_buyfee] => Array
a2billing.php|1: (
a2billing.php|1: [0] =>
a2billing.php|1: )
a2billing.php|1:
a2billing.php|1: [international_prefixes] => Array
a2billing.php|1: (
a2billing.php|1: [0] => 011
a2billing.php|1: [1] => 00
a2billing.php|1: [2] => 09
a2billing.php|1: )
a2billing.php|1:
a2billing.php|1: [dialcommand_param] => |60|HRgrLC(%timeout%:61000:30000)
a2billing.php|1: [dialcommand_param_sipiax_friend] => |60|HRgirL(3600000:61000:30000)
a2billing.php|1: [switchdialcommand] =>
a2billing.php|1: [failover_recursive_limit] => 2
a2billing.php|1: [maxtime_tocall_negatif_free_route] => 5400
a2billing.php|1: [send_reminder] =>
a2billing.php|1: [record_call] =>
a2billing.php|1: [monitor_formatfile] => gsm
a2billing.php|1: [agi_force_currency] => eur
a2billing.php|1: [currency_association] => Array
a2billing.php|1: (
a2billing.php|1: [0] => eur:euros
a2billing.php|1: )
a2billing.php|1:
a2billing.php|1: [file_conf_enter_destination] =>
a2billing.php|1: [file_conf_enter_menulang] =>
a2billing.php|1: [callback_bill_1stleg_ifcall_notconnected] => 1
a2billing.php|1: [logger_enable] => 1
a2billing.php|1: [log_file] => /tmp/a2billing.log
a2billing.php|1: [currency_association_internal] => Array
a2billing.php|1: (
a2billing.php|1: [eur] => euros
a2billing.php|1: )
a2billing.php|1:
a2billing.php|1: [ivr_voucher_prefixe] => 8
a2billing.php|1: )
a2billing.php|1:
a2billing.php|1: file:a2billing.php - line:78 - IDCONFIG : 1
a2billing.php|1: file:a2billing.php - line:79 - MODE : standard
a2billing.php|1: file:a2billing.php - line:91 - AGI Request:
a2billing.php|1: file:a2billing.php - line:92 - Array
a2billing.php|1: (
a2billing.php|1: [agi_request] => a2billing.php
a2billing.php|1: [agi_channel] => SIP/102-08e31928
a2billing.php|1: [agi_language] => en
a2billing.php|1: [agi_type] => SIP
a2billing.php|1: [agi_uniqueid] => 1220760234.62
a2billing.php|1: [agi_callerid] => 102
a2billing.php|1: [agi_calleridname] => jose
a2billing.php|1: [agi_callingpres] => 0
a2billing.php|1: [agi_callingani2] => 0
a2billing.php|1: [agi_callington] => 0
a2billing.php|1: [agi_callingtns] => 0
a2billing.php|1: [agi_dnid] => 662134xxx
a2billing.php|1: [agi_rdnis] => unknown
a2billing.php|1: [agi_context] => a2billing
a2billing.php|1: [agi_extension] => 662134xxx
a2billing.php|1: [agi_priority] => 1
a2billing.php|1: [agi_enhanced] => 0.0
a2billing.php|1: [agi_accountcode] => 102
a2billing.php|1: )
a2billing.php|1:
a2billing.php|1: file:Class.A2Billing.php - line:621 - get_agi_request_parameter = 102 ; SIP/102-08e31928 ; 1220760234.62 ; 102 ; 662134042
a2billing.php|1: file:a2billing.php - line:145 - [NO ANSWER CALL]
a2billing.php|1: file:Class.A2Billing.php - line:590 - FORCE LANGUAGE : es
a2billing.php|1: file:Class.A2Billing.php - line:599 - [SET CHANNEL(language) es]
a2billing.php|1: file:Class.A2Billing.php - line:1439 - [CID_ENABLE - CID_CONTROL - CID:102]
a2billing.php|1: file:Class.A2Billing.php - line:1456 - 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, cc_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_TIMESTAMP(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 LEFT JOIN cc_tariffgroup ON cc_card.tariff=cc_tariffgroup.id WHERE cc_callerid.cid='102'
a2billing.php|1: RESULT : Array
a2billing.php|1: (
a2billing.php|1: [0] => Array
a2billing.php|1: (
a2billing.php|1: [0] => 102
a2billing.php|1: [cid] => 102
a2billing.php|1: [1] => 8
a2billing.php|1: [id_cc_card] => 8
a2billing.php|1: [2] => t
a2billing.php|1: [activated] => t
a2billing.php|1: [3] => 9.31830
a2billing.php|1: [credit] => 9.31830
a2billing.php|1: [4] => -1
a2billing.php|1: [tariff] => -1
a2billing.php|1: [5] => t
a2billing.php|1: [6] => 0
a2billing.php|1: [inuse] => 0
a2billing.php|1: [7] => 0
a2billing.php|1: [simultaccess] => 0
a2billing.php|1: [8] => 0
a2billing.php|1: [typepaid] => 0
a2billing.php|1: [9] =>
a2billing.php|1: [creditlimit] =>
a2billing.php|1: [10] => es
a2billing.php|1: [language] => es
a2billing.php|1: [11] => 102
a2billing.php|1: [username] => 102
a2billing.php|1: [12] =>
a2billing.php|1: [removeinterprefix] =>
a2billing.php|1: [13] => 662134xxx
a2billing.php|1: [redial] => 662134xxx
a2billing.php|1: [14] => 0
a2billing.php|1: [enableexpire] => 0
a2billing.php|1: [15] => 1534962911
a2billing.php|1: [UNIX_TIMESTAMP(expirationdate)] => 1534962911
a2billing.php|1: [16] => 0
a2billing.php|1: [expiredays] => 0
a2billing.php|1: [17] => 18
a2billing.php|1: [nbused] => 18
a2billing.php|1: [18] => 1219431825
a2billing.php|1: [UNIX_TIMESTAMP(firstusedate)] => 1219431825
a2billing.php|1: [19] => 1219430200
a2billing.php|1: [UNIX_TIMESTAMP(cc_card.creationdate)] => 1219430200
a2billing.php|1: [20] => EUR
a2billing.php|1: [currency] => EUR
a2billing.php|1: [21] =>
a2billing.php|1: [lastname] =>
a2billing.php|1: [22] =>
a2billing.php|1: [firstname] =>
a2billing.php|1: [23] =>
a2billing.php|1: [email] =>
a2billing.php|1: [24] => 102
a2billing.php|1: [uipass] => 102
a2billing.php|1: [25] => -1
a2billing.php|1: [id_campaign] => -1
a2billing.php|1: [26] => 8
a2billing.php|1: [id] => 8
a2billing.php|1: [27] => 102
a2billing.php|1: [useralias] => 102
a2billing.php|1: )
a2billing.php|1:
a2billing.php|1: )
a2billing.php|1:
a2billing.php|1: file:Class.A2Billing.php - line:654 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse+1 WHERE username='102']
a2billing.php|1: file:Class.A2Billing.php - line:1400 - [AUTO SetCallerID]
a2billing.php|1: file:a2billing.php - line:172 - [CHANNEL STATUS : 4 = Line is ringing]
a2billing.php|1: file:a2billing.php - line:173 - [CREDIT : 9.31830][CREDIT MIN_CREDIT_2CALL : 0]
a2billing.php|1: file:Class.A2Billing.php - line:676 - && && 9&& 0
[Sep 7 06:03:55] WARNING[7685]: file.c:607 ast_openstream_full: File 6000 does not exist in any format
[Sep 7 06:03:55] WARNING[7685]: file.c:906 ast_streamfile: Unable to open 6000 (format 0x4 (ulaw)): No such file or directory
a2billing.php|1: file:Class.A2Billing.php - line:683 - RES DTMF : -1
a2billing.php|1: file:Class.A2Billing.php - line:701 - DESTINATION ::> -1
a2billing.php|1: file:Class.A2Billing.php - line:703 - RULES APPLY ON DESTINATION ::> -1
a2billing.php|1: file:Class.A2Billing.php - line:654 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse-1 WHERE username='102']
-- AGI Script a2billing.php completed, returning 0

Lo que hice fue quitar todo lo que habia cargado borre trunk, call plan, retcard, prefijos, todo; para empezar de cero, me imagine que el problema venia con los prefijos ya que dice que no encuentra DESTINATION. cargue todo denuevo como lo tenia en un principio pero sigue igual. les pego el a2billing.conf a ver si es que hay algo mal ahi a ver si me pueden ayudar
Desde ya gracias y saludos

A2billing.conf
;
; [database]
hostname = localhost
port = 5432
user = XXXXXXXX
password = XXXXXXX
dbname = XXXXXXX
;dbtype = postgres
dbtype = mysql

[global]
; len_cardnumber is removed
; interval for the length of the cardnumber (number of digits), minimum lenght is 4
; ie: 10-15 (cardnumber authorised 10, 11, 12, 13, 14, 15) ; 10,12,14 (cardnumber authorised 10, 12, 14)
interval_len_cardnumber = 10-15

; Alias-Card length
len_aliasnumber = 15

; Voucher length
len_voucher = 15

;base currency define the default currency that you want to use to setup your system (see the currency table to know the currency code)
base_currency = eur

; 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/)
; the type of file have to be a jpeg/jpg
invoice_image = asterisk01.jpg

; DID Billing - amount of day before the end of the monthly reservation to bill the customer to for the DID use
; if the user dont have enough credit he will get an email asking him to refill
didbilling_daytopay = 5

;webiste administrator email address
admin_email = areski@gmail.com

; MANAGER CONNECTION PARAMETERS
manager_host = localhost
manager_username = XXXXXXX
manager_secret = XXXXXXXX

; CALL-BACK
[callback]
; When web call-back is enabled this is the context to sent the call.
context_callback = a2billing-callback

; this is the Extension to redirect the call when the web callback is returned
extension = 1000

; this is the number of seconds to wait before initiating the call back.
sec_wait_before_callback = 10

;Number of seconds before the call-back can be re-initiated from the web page
; to prevent repeated and unwanted calls.
sec_avoid_repeate = 30

; if the callback doesnt succeed within the value below, then the call is deemed to have failed.
timeout = 20

; if we want to manage the answer on the call
; Disabling this for callback trigger numbers makes it ring not hang up.
answer_call = no;yes

; PREDICTIVE DIALER
; number of calls an agent will do when the call button is clicked
nb_predictive_call = 10

; Number of days to wait before the number becomes available to call again.
nb_day_wait_before_retry = 1

; The context to redirect the call for the predictive dialer
context_preditctivedialer = a2billing-predictivedialer

; When a call is made we need to limit the call duration : amount in seconds
predictivedialer_maxtime_tocall = 5400

; set the callerID for the predictive dialer and call-back
callerid = 123456

; ID Call Plan to use when you use the all-callback mode, check the ID in the "list Call Plan" - WebUI
all_callback_tariff = 1

; Define the group of servers that are going to be used by the callback
id_server_group = 1

; Audio intro message when the callback is initiate
callback_audio_intro = prepaid-callback_intro

; CUSTOMISATION Of THE CUSTOMER INTERFACE
[webcustomerui]

; url of the signup page to show up on the sign in page (if empty no link will show up)
signup_page_url =

;Enable or disable the payment methods; yes for multi-payment or no for single payment method option
paymentmethod = no;yes

;Enable or disable the page which allow customer to modify its personal information
personalinfo = yes

; Enable display of the payment interface - yes or no

customerinfo = yes

; Enable display of the sip/iax info - yes or no
sipiaxinfo = no;yes

; Enable the Call history - yes or no
cdr = yes

; Enable invoices - yes or no
invoice = no;yes

; Enable the voucher screen - yes or no
voucher = no;yes

; Enable the paypal payment buttons - yes or no
paypal = no;yes

; Allow Speed Dial capabilities - yes or no
speeddial = no;yes

; Enable the DID (Direct Inwards Dialling) interface - yes or no
did = no;yes

; Show the ratecards - yes or no
ratecard = yes

; Offer simulator option on the customer interface - yes or no
simulator = no;yes

; Enable the callback option on the customer interface - yes or no
callback = no;yes

; Enable the predictivedialer option on the customer interface - yes or no
predictivedialer = no;yes

; Let users use SIP/IAX Webphone (Options : yes/no)
webphone = no;no

;IP address or domain name of asterisk server that would be used by the web-phone
webphoneserver = no;localhost

; Let the users add new callerid
callerid = yes

; Let the user change the webui password
password = yes

; The total number of callerIDs for CLI Recognition that can be add by the customer
limit_callerid =

; Email address to send the notification and error report - new DIDs assigned will also be emailed.
error_email = root@localhost

; URL for specific return if an error occur after login
return_url_distant_login =

; URL for specific return if an error occur after forgetpassword
return_url_distant_forgetpassword =

;SIP & IAX client configuration information.
[sip-iax-info]

;Trunk Name to show in sip/iax info
sip_iax_info_trunkname = call-labs

;Allowed Codec, ulaw, gsm, g729
; use multi value without spaces : "gsm,ulaw,g729"
sip_iax_info_allowcodec = ulaw;g729

;host information
sip_iax_info_host = call-labs.com

;IAX Additional Parameters
iax_additional_parameters = "canreinvite = no"

;SIP Additional Parameters
sip_additional_parameters = "trustrpid = yes | sendrpid = yes | canreinvite = no"

[epayment_method]
enable = no;yes
; eg, http://localhost - should not be empty for productive servers
http_server = "http://www.call-labs.com"
; eg, https://localhost - Enter here your Secure Server Address, should not be empty for productive servers
https_server = "http://www.call-labs.com"
; Enter your Domain Name or IP Address, eg, 26.63.165.200
http_cookie_domain = 26.63.165.200
; Enter your Secure server Domain Name or IP Address, eg, 26.63.165.200
https_cookie_domain = 26.63.165.200
; Enter the Physical path of your Application on your server
http_cookie_path = "/A2BCustomer_UI/"
; Enter the Physical path of your Application on your Secure Server
https_cookie_path = "/A2BCustomer_UI/"
; Enter the Physical path of your Application on your server
dir_ws_http_catalog = "/A2BCustomer_UI/"
; Enter the Physical path of your Application on your Secure Server
dir_ws_https_catalog = "/A2BCustomer_UI/"
; secure webserver for checkout procedure?
enable_ssl = yes

http_domain = 26.63.165.200

dir_ws_http = "/~areski/svn/a2billing/payment/A2BCustomer_UI/"

; maybe try with :
; Define here the URL to notify the payment
; payment_notify_url=...

;define the different amount of purchase that would be available - 5 amount maximum (5:10:15)
purchase_amount = 1:2:5:10:20

; Item name that would be display to the user when he will buy credit
item_name = "Credit Purchase"

; Currency for the Credit purchase, only one can be define here
currency_code = EUR;USD

; Define here the URL of paypal gateway the payment (to test with paypal sandbox)
paypal_payment_url = "https://secure.paypal.com/cgi-bin/webscr"
;paypal_payment_url = "https://www.sandbox.paypal.com/cgi-bin/webscr"

; paypal transaction verification url
paypal_verify_url = "ssl://www.paypal.com"
;paypal_verify_url = www.sandbox.paypal.com

; Define here the URL of Authorize gateway
authorize_payment_url = "https://secure.authorize.net/gateway/transact.dll"
;authorize_payment_url = "https://test.authorize.net/gateway/transact.dll"

;paypal store name to show in the paypal site when customer will go to pay
store_name = Asterisk2Billing

;Transaction Key for security of Epayment Max length of 60 Characters.
transaction_key = asdf1212fasd121554sd4f5s45sdf

;Moneybookers secret word
moneybookers_secretword = areski

; SIGNUP MODULE
[signup]
; enable the signup module
enable_signup = 1

; enable Captcha on the signup module (value : YES or NO)
enable_captcha = YES

; amount of credit applied to a new user.
credit = 0

; the list of id of call plans which will be shown in signup.
callplan_id_list = 1, 2

; Specify whether the card is created as active or pending
activated = no

; Simultaneous or non concurrent access with the card - 0 = INDIVIDUAL ACCESS or 1 = SIMULTANEOUS ACCESS
simultaccess = 0

;PREPAID CARD = 0 - POSTPAY CARD = 1
typepaid = 0

; Define credit limit, which is only used for a POSTPAY card.
creditlimit = 0

; Authorise the recurring service to apply on this card - Yes 1 - No 0
runservice = 0

; Enable the expiry of the card - Yes 1 - No 0
enableexpire = 0

; Expiry Date format YYYY-MM-DD HH:MM:SS. For instance, '2004-12-31 00:00:00'
expirationdate =

; The number of days after which the card will expire
expiredays = 0

; Create a sip account from signup ( default : yes )
sip_account = yes

; Create an iax account from signup ( default : yes )
iax_account = yes

; active card after the new signup. if No, the Signup confirmation is needed and an email will be sent
; to the user with a link for activation (need to put the link into the Signup mail template)
activatedbyuser = no

; url of the customer interface to display after activation
urlcustomerinterface = http://localhost/billing/

; Define if you want to reload Asterisk when a SIP / IAX Friend is created at signup time
reload_asterisk_if_sipiax_created = no

;BACK-UP AND RESTORE
; configuration for backup and restore
[backup]

; Path to store backup of database
backup_path = /tmp

; path for gzip
gzip_exe = /bin/gzip

; path for gunzip
gunzip_exe = /bin/gunzip

; path for mysqldump
mysqldump = /usr/bin/mysqldump

; path for pg_dump
pg_dump = /usr/bin/pg_dump

; path for mysql
mysql = /usr/bin/mysql

;path for psql
psql = /usr/bin/psql

; WEB INTERFACE AND API CONFIGURATION
[webui]

; Path to store the asterisk configuration files SIP & IAX
buddy_sip_file = /etc/asterisk/additional_a2billing_sip.conf
buddy_iax_file = /etc/asterisk/additional_a2billing_iax.conf

; API have a security key to validate the http request, the key has to be sent after applying md5
; Valid characters are [a-z,A-Z,0-9]
api_security_key = Ae87v56zzl34v

; API to restrict the IP's authorised to make a request.
; Define The the list of ips separated by ;
api_ip_auth = 127.0.0.1

; Administative Email(not used yet)
email_admin = root@localhost

; MOH (Music on Hold) base directory
dir_store_mohmp3 = /var/lib/asterisk/mohmp3

; Number of MOH classes you have created in musiconhold.conf : acc_1, acc_2... acc_10 class etc...
num_musiconhold_class = 10

; Display the help section inside the admin interface (YES - NO)
show_help = YES

; File Upload parameters
; PLEASE CHECK ALSO THE VALUE IN YOUR PHP.INI THE LIMIT IS 2MG BY DEFAULT
my_max_file_size_import = 1024000 ; 1 MG

; Not used yet, The goal is to upload files and use them in the IVR
dir_store_audio = /var/lib/asterisk/sounds/a2billing

; upload maximum file size
my_max_file_size_audio=3072000 ; in bytes

; File type extensions permitted to be uploaded such as "gsm, mp3, wav" (separated by ,)
file_ext_allow = gsm, mp3, wav

; File type extensions permitted to be uploaded for the musiconhold such as "gsm, mp3, wav" (separate by ,)
file_ext_allow_musiconhold = mp3

; RECORDED CONVERSATIONS

; Enable link on the CDR viewer to the recordings. (YES - NO)
link_audio_file = NO

; Path to link the recorded monitor files
monitor_path = /var/spool/asterisk/monitor
; grant access to apache user on read mode for the directory :> chmod 755 /var/spool/asterisk/monitor/

; FORMAT OF THE RECORDED MONITOR FILE
monitor_formatfile = gsm

; Display the icon in the invoice
show_icon_invoice = no;YES

;CURRENCY AND GENERAL SETTINGS

; Display the top frame (useful if you want to save space on your little tiny screen )
show_top_frame = NO

; Allow the customer to chose the most appropriate currency ("all" can be used)
currency_choose = eur, usd, cad, hkd

; field to export in csv format from cc_card table
card_export_field_list = id, username, useralias, lastname, credit, tariff, activated, language, inuse, currency, sip_buddy, iax_buddy, nbused, mac_addr

; field to export in csv format from cc_voucher table
voucher_export_field_list = id, voucher, credit, tag, activated, usedcardnumber, usedate, currency

; Advanced mode - Display additional configuration options on the ratecard (progressive rates, musiconhold, ...)
advanced_mode = YES;NO

; Delete the SIP/IAX Friend & callerid when a card is deleted
delete_fk_card = yes

; This section is basically used when we create a new friend
; when you create a SIP IAX friend for a card the following parameters will define the default value for the peer creation
[peer_friend]
; Refer to sip.conf & iax.conf documentation for the meaning of those parameters
; sip.conf -> http://www.voip-info.org/wiki-Asterisk+config+sip.conf
; iax.conf -> http://www.voip-info.org/wiki-Asterisk+config+iax.conf
type = friend
allow = ulaw,alaw,gsm,g729
context = a2billing
; use "no" or "yes" with quote otherwise the value will be converted to 1 or 0
nat = "yes"
amaflag = billing
; use "no" or "yes" with quote otherwise the value will be converted to 1 or 0
qualify = "yes"
host = dynamic
dtmfmode = RFC2833

[log-files]
; To disable application logging, remove/comment the log file name aside service

; cront - recurring process
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 log file, to log all the transaction & error
paypal = /tmp/a2billing_paypal.log

; epayment log file, to log all the transaction & error
epayment = /tmp/a2billing_epayment.log

; Log file to store the ecommerce API requests
api_ecommerce = /tmp/api_ecommerce_request.log

; Log file to store the CallBack API requests
api_callback = /tmp/api_callback_request.log

; File to log
agi = /tmp/a2billing_agi.log

; configuration for the AGI, different configuration can be defined, ie "agi-conf1", "agi-conf2", etc...
; the groupid parameter will define which process_sections to use. Usage : DeadAGI(a2billing.php|%groupid%)
; by default agi-conf1 is used
[agi-conf1]

; the debug level
; 0=none, 1=low, 2=normal, 3=all
debug = 1

; Asterisk Version Information
; 1_1,1_2,1_4 By Default it will take 1_2 or higher
asterisk_version = 1_4;2

; Manage the answer on the call
answer_call = NO;YES

; Play audio - this will disable all stream file but not the Get Data
; for wholesale ensure that the authentication works and than number_try = 1
play_audio = no;YES

; play the goodbye message when the user has finished.
say_goodbye = no;NO

; enable the menu to choose the language
; press 1 for English, pulsa 2 para el español, Pressez 3 pour Français
play_menulanguage = NO

; force the use of a language, if you dont want to use it leave the option empty
; Values : ES, EN, FR, etc... (according to the audio you have installed)
force_language =es

; Introduction prompt : to specify an additional prompt to play at the beginning of the application
intro_prompt =

; Minimum amount of credit to use the application
min_credit_2call = 0

; 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
; useful not to charge callers for system errors when a call was answered but it actually didn't connect
min_duration_2bill = 0

; if user doesn't have enough credit to call a destination, prompt him to enter another cardnumber
notenoughcredit_cardnumber = no;YES

; if notenoughcredit_cardnumber = YES then assign the CallerID to the new cardnumber
notenoughcredit_assign_newcardnumber_cid = no;YES

; if YES it will use the DNID and try to dial out, without asking for the phonenumber to call
; value : YES, NO
use_dnid = NO

; list the dnid on which you want to avoid the use of the previous option "use_dnid"
no_auth_dnid = 2400,2300

; number of times the user can dial different number
number_try = 1;3

; this will force to select a specific call plan by the Rate Engine
force_callplan_id =

; Play the balance to the user after the authentication (values : yes - no)
say_balance_after_auth = no;YES

; Play the balance to the user after the call (values : yes - no)
say_balance_after_call = NO

; Play the initial cost of the route (values : yes - no)
say_rateinitial = NO

; Play the amount of time that the user can call (values : yes - no)
say_timetocall = no;YES

; enable the setup of the callerID number before the outbound is made, by default the user callerID value will be use
auto_setcallerid = no;YES

; If auto_setcallerid is enabled, the value of force_callerid will be set as CallerID
force_callerid =

; 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.
; 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 = CID;NO

; enable the callerid authentication
; if this option is active the CC system will check the CID of caller
cid_enable = yes;NO

; if the CID does not exist, then the caller will be prompt to enter his cardnumber
cid_askpincode_ifnot_callerid = no;YES

; if the callerID authentication is enable and the authentication fails then the user will be prompt to enter his cardnumber
; this option will bound the cardnumber entered to the current callerID so that next call will be directly authenticate
cid_auto_assign_card_to_cid = no;YES

; if the callerID is captured on a2billing, this option will create automatically a new card and add the callerID to it
cid_auto_create_card = NO

; set the length of the card that will be auto create (ie, 10)
cid_auto_create_card_len = 4;10

; If cid_auto_create_card has been set to YES, the following options will define with which configuration we will create the card
;
; billing type of the new card
; ( value : POSTPAY or PREPAY)
cid_auto_create_card_typepaid = PREPAY;POSTPAY

; amount of credit of the new card
cid_auto_create_card_credit = 5;0

; if postpay, define the credit limit for the card
cid_auto_create_card_credit_limit = 1000

; the tariffgroup to use for the new card (this is the ID that you can find on the admin web interface)

cid_auto_create_card_tariffgroup = 1

; to check callerID over the cardnumber authentication (to guard against spoofing)
callerid_authentication_over_cardnumber = NO

; enable the option to call sip/iax friend for free (values : YES - NO)
sip_iax_friends = NO

; if SIP_IAX_FRIENDS is active, you can define a prefix for the dialed digits to call a pstn number
; values : number
sip_iax_pstn_direct_call_prefix = 555

; this will enable a prompt to enter your destination number.
; if number start by sip_iax_pstn_direct_call_prefix we do directly a sip iax call, if not we do a normal call
sip_iax_pstn_direct_call = NO

; enable the option to refill card with voucher in IVR (values : YES - NO)
ivr_voucher = NO

; if ivr_voucher is active, you can define a prefix for the voucher number to refill your card
; values : number - don't forget to change prepaid-refill_card_with_voucher audio accordingly
ivr_voucher_prefix = 8

; When the user credit are below the minimum credit to call min_credit
; jump directly to the voucher IVR menu (values: YES - NO)
jump_voucher_if_min_credit = 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 =
;extracharge_buyfee = 0.015,0.025
extracharge_buyfee =

; List the prefixes that will be stripped off if the call plan requires it
international_prefixes = 011,00,09

; More information about the Dial : http://voip-info.org/wiki-Asterisk+cmd+dial
; 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.
; H: Allow the caller to hang up by dialing *
; r: Generate a ringing tone for the calling party
; g: When the called party hangs up, exit to execute more commands in the current context. (new in 1.4)
; 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.
; R: Indicate ringing to the calling party when the called party indicates ringing, pass no audio until answered.
; m: Provide Music on Hold to the calling party until the called channel answers.
; L(x[:y][:z]): Limit the call to 'x' ms, warning when 'y' ms are left, repeated every 'z' ms)
; %timeout% tag is replaced by the calculated timeout according the credit & destination rate!

dialcommand_param = "|60|HRgrLC(%timeout%:61000:30000)"

; by default (3600000 = 1HOUR MAX CALL)
dialcommand_param_sipiax_friend = "|60|HRgirL(3600000:61000:30000)"

; Define the order to make the outbound call
; YES -> SIP/dialedphonenumber@gateway_ip - NO SIP/gateway_ip/dialedphonenumber
; Both should work exactly the same but i experimented one case when gateway was supporting dialedphonenumber@gateway_ip
; So in case of trouble, try it out
switchdialcommand = NO

; failover recursive search - define how many time we want to authorize the research of the failover trunk when a call fails (value : 0 - 20)
failover_recursive_limit = 2

; For free calls, limit the duration: amount in seconds
maxtime_tocall_negatif_free_route = 5400

; Send a reminder email to the user when they are under min_credit_2call
send_reminder = NO

; enable to monitor the call (to record all the conversations)
; value : YES - NO
record_call = NO

; format of the recorded monitor file
monitor_formatfile = gsm

; 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
agi_force_currency = eur; estaba vacio

; CURRENCY SECTION
; 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")
currency_association = eur:euros;usd:dollars,mxn:pesos,eur:euros,all:credit

; Please enter the file name you want to play when we prompt the calling party to enter the destination number
; file_conf_enter_destination = prepaid-enter-number-u-calling-1-or-011

file_conf_enter_destination = ;prepaid-enter-dest

; Please enter the file name you want to play when we prompt the calling party to choose the prefered language
; file_conf_enter_menulang = prepaid-menulang
file_conf_enter_menulang = ;prepaid-menulang2

; Define if you want to bill the 1st leg on callback even if the call is not connected to the destination
callback_bill_1stleg_ifcall_notconnected = YES

La información que devuelve

Imagen de RazaMetaL

La información que devuelve el log es correcta, solo nos estas mostrando el debug de la ejecución del AGI de a2billing. No vemos el estado de la llamada y es difícil adivinar que es lo que esta causando el problema.

------------

Antes de preguntar visita el [url=http://www.sindominio.net/ayuda/preguntas-inteligentes.html]link[/url] :evil:

 

[img]http://www.bbspot.com/Images/News_Features/2003/01/os_quiz/debian.jpg[/img]

-----

Visita este [url=http://www.sindominio.net/ayuda/preguntas-inteligentes.html]link[/url] :evil:

[img]http://www.bbspot.com/Images/News_Features/2003/01/os_quiz/debian.jpg[/img]

(adsbygoogle = window.adsbygoogle || []).push({});

ayuda con a2billing

Hola amigos

he seguido todo lo que han posteado
pero no he podido tener exito con poder echar andar a2billing
tengo asterisk 1.4.20 y a2billing 1.3.3;

Agradeceria mucho que me puedan ayudar.

resulta que a2billing no me funciona es decir no me tarifica nada, asterisk me funciona bien aunque lo unico que he
hecho es tener un proveerdor sip y hacer llamadas y creo suponer que lo demas funciona bien, pero por el momento no
me interesa mucho lo vere despues una ves que a2billing me tarifique las llamadas sip que hago.

miren les explico:

tengo

a2billing.conf con estos datos:

[database]
hostname = localhost
;port = 5432
port = 3306
user = a2billinguser
password = a2billing
dbname = mya2billing
;dbtype = postgres
dbtype = mysql

y me funciona bien puedo entrar a la BD y ver las tablas y en las paginas no me manda ningun error.

tambien tengo esto en ese mismo archivo:

min_duration_2bill = 0

para que m pueda tarificar rapido sin que me contesten.

ahora en extensions_custom.conf tengo:

;AGREGUE ESTO POR LO QUE MENCIONAN AL FINAL DEL MANUAL
[macro-dialout-trunk-predial-hook]
;[a2billing]
exten => s,1,GotoIf($["${OUT_${DIAL_TRUNK}:4:4}" = "A2B/"]?custom-freepbx-a2billing,${OUTNUM},1:2)
exten => s,2,MacroExit
[custom-freepbx-a2billing]
exten => _X.,1,DeadAGI(a2billing.php|${OUT_${DIAL_TRUNK}:8})
exten => _X.,n,Hangup()
;AQUI TERMINA LO AGREGADO

que es la macro que me ayuda a tarificar pero no hay resultado ademas agregue lo sig. tambien en este mismo
archivo porque he visto que en algunos manuales lo agregan.

[a2billing]
exten => _X.,1,Answer
exten => _X.,2,Wait,2
exten => _X.,3,DeadAGI,a2billing.php
exten => _X.,4,Wait,2
exten => _X.,5,Hangup

Pero lo agregue por q vi que las tarjetas q cree para los clientes en los archivos:
additional_a2billing_sip.conf
additional_a2billing_iax.conf

traen lo siguiente:

[6803228260]
type=friend
username=6803228260
accountcode=6803228260
regexten=6803228260
callerid=205
amaflags=billing
secret=205
nat=yes
dtmfmode=RFC2833
qualify=yes
canreinvite=yes
disallow=all
allow=ulaw
allow=alaw
allow=gsm
allow=g729
host=dynamic
context=a2billing ; lo agregue por esto porq supongo que hace la llamada a [a2billing]
;context=macro-dialout-trunk-predial-hook
regseconds=0
cancallforward=yes

como quiera las dos partes:

[a2billing] y [macro-dialout-trunk-predial-hook]

estan agregadas en extensions_custom.conf

por si una me funcionaba pero ademas tengo otra duda
la etiqueta:
[macro-dialout-trunk-predial-hook]
existe en otra parte en el archivo: extensions.conf

pero esta etiqueta abajo de ella no hay nada, es decir esta comentado todo lo que tiene, aqui esta esa parte que esta en el archivo:

[macro-dialout-trunk-predial-hook]
; this macro intentially left blank so it may be safely overwritten for any custom
; requirements that an installatin may have.
;
; MACRO RETURN CODE: ${PREDIAL_HOOK_RET}
; if set to "BYPASS" then this trunk will be skipped
;

por lo que pense que el asterisk o a2billing lo podian llamar y lo comente quedando:

;[macro-dialout-trunk-predial-hook]
; this macro intentially left blank so it may be safely overwritten for any custom
; requirements that an installatin may have.
;
; MACRO RETURN CODE: ${PREDIAL_HOOK_RET}
; if set to "BYPASS" then this trunk will be skipped
;

Ahora en la web tengo:
Agregue el trunk en freePBX como lo dice el manual

Trunk A2B/1

y solo puse estos datos:

Dial Rules: 8+XXXXX

Custom Dial String:A2B/1

y lo guarde

y en el Outbound Routes tengo:

Route Name:
TARIFICADA
Intra Company RouteOptional: ESTA PALOMEADA
Dial Patterns: 5|XXXXX
Trunk Sequence: A2B/1

y lo guarde

por lo que se daran cuenta marco un numero 5XXXXX
y sale por el trunk con 8XXXXX

Y en este apartado tengo una duda hay un modo de monitorear el trunk de asterisk-a2billing (es importante para saber que lo esta tomando)cuando lo utiliza
por q no lo veo, en el caso que tengo el trunk SIP si lo puedo ver cuando hablo por telefono a otro lugar
pero en este caso marco 6XXXXX q es otra ruta q utilizo como prueba para ver que funciona el tel. que estoy
llamando y luego marco el mismo telefono ahora con 5XXXXX pero el telefono me manda a la contestadora de
asterisk bueno nose si sea la contestadora me lo dice en ingles y no le entiendo muy bien que me dice.

pero bueno en conclusion segun yo manda el numero por el trunk de asterisk-a2billing como 8XXXXX
ahora del lado de a2billing para que lo tome:

En la web tengo:

En la parte de
Browse Ratecard tengo:

DESTINATION corea del sur
PREFIX 8
BR 0.05
SR 0.1
START-DATE 2008-09-13 17:
STOP-DATE 2018-09-13 17:
INITB 6
CC 0
TRUNK miproveedorSIP
FTC No

Olvidense de los presios, eso no me interesa quiero q me tarifique, ahora
miproveedorSIP es el que utilizo para las pruebas 5XXXXX que les mencione arriba (es el que funciona muy bien por lo que no puede ser mi proveedor o la configuracion) entonces por lo tanto supongo al ponerlo aqui debe funcionar con el
pero no lo toma.

Entonces estabamos diciendo arriba que el trunk de asterisk-a2billing lleva 8XXXXX por lo que este ratecard lo debe tomar porq le estoy diciendo que tome el numero que venga con 8 como lo dice el PREFIX

Ahora en el trunk de a2billing(no confundir con el trunk que tengo en asterisk cual es: asterisk-a2billing con Custom Dial String:A2B/1 ) que es el que se configura por la web pero de billing-admin:

En el apartado List Trunk:
tengo:

LABEL DEFAULT
ADD_PREFIX 011
REMOVE_PREFIX
TECH IAX2
IP/HOST kiki@switch-.net
PROVIDER
MINUTES 0:00

LABEL miproveedorSIP
ADD_PREFIX
REMOVE_PREFIX
TECH SIP
IP/HOST miproveedorSIP
PROVIDER miproveedorSIP
MINUTES 00:00

como veran tengo un trunk de default que es el que ya traia de ejemplo, que no creo q es el que me este causando daño y el trunk de miproveedorSIP(es el mismo nombre que utilizo en el trunk asterisk de mi proveedor sip que es el que les digo que funciona bien cuando marco 6XXXXX)
pero ahorita que estoy escribiendo ya me surgio la duda de como es que toma el trunk adecuado la ratecard para que pueda tarificar la llamada.
Bueno como veran mi trunk no tiene ADD PREFIX Y REMOVE PREFIX porq segun ya hace la llamada con el 8XXXXX que le mando por el trunk asterisk-a2billing que cree, es decir este, Custom Dial String:A2B/1.

Bueno eso es todo.
no he podido he hecho muchas pruebas y nada espero que me ayuden nose si sea la version pero no creo
el trixbox es el 2.6.1, asterisk es 1.4.20-1 y el a2billing es el 1.3.3

Espero su respuesta tan detallada como la mia si fuera mucha molestia
gracias.

Saludos!!

Cita: Olvidense de los

Imagen de RazaMetaL

[quote]Olvidense de los presios, eso no me interesa quiero q me tarifique, ahora
miproveedorSIP es el que utilizo para las pruebas 5XXXXX que les mencione arriba (es el que funciona muy bien por lo que no puede ser mi proveedor o la configuracion) entonces por lo tanto supongo al ponerlo aqui debe funcionar con el
pero no lo toma.[/quote]

Vas a necesitar agregar tarifas al ratecard de a2billing para que funcione. Revisa el manual para configurar a2billing en 10 minutos. Esta en la sección Comos.

------------

Antes de preguntar visita el [url=http://www.sindominio.net/ayuda/preguntas-inteligentes.html]link[/url] :evil:

 

[img]http://www.bbspot.com/Images/News_Features/2003/01/os_quiz/debian.jpg[/img]

-----

Visita este [url=http://www.sindominio.net/ayuda/preguntas-inteligentes.html]link[/url] :evil:

[img]http://www.bbspot.com/Images/News_Features/2003/01/os_quiz/debian.jpg[/img]

(adsbygoogle = window.adsbygoogle || []).push({});

no me explique

ya tengo las ratecard y las rates correspondientes, mencione que se olviden de los precios, es para que no tomen encuenta los valores que puse por q son valores de prueba.

Pero ya que lo mencionan el ratecard que utilizo es:

ID: 1
TARIFFNAME: Internacional
STARTDATE: 2008-09-13 17:23
EXPIRY DATE: 2033-09-13 17:23
TRUNK: miProveedor(el bueno el que ya les mencione que funciona bien solo con asterisk aqui lo nombro)
MINUTES USED: 00:00
DNID PREFIX: all
CID PREFIX: all

y mi rates:

DESTINATION: corea del sur
PREFIX: 8
BR: 0.05
SR: 0.1
START-DATE: 2008-09-13 17:26:44
STOP-DATE: 2018-09-13 17:26:44
INITB: 6
CC: 0
TRUNK: miProveedor(el bueno el que ya les mencione que funciona bien solo con asterisk aqui lo nombro)
FTC: No

BUeno aqui se los pongo, les mencionaba que no hicieran caso de los BR,SR pero bueno ya se los puse para que lo chequen y me puedan ayudar, espero una respuesta mas detallada, asi como yo les explico, no solo me manden al manual porq ya lo consulte, y por eso estoy posteando para que me ayuden no para que me manden al manual.

De antemano gracias por su tiempo

saludos!!!

A2NILLING SIN AUTHENTICACION

:(
hola amigos

les planteo el problema a ver si alguien me puede ayudar

quiero que el a2billing tarifique pero sin authenticacion de caller id
ya he mirado la facilidad "callerid" la deje en no para que no authentifique, de echo he probado todas las facililidades del a2billing.conf
no encuentro la manera de que a2billing deje pasar todo el trafico solo con la authenticacion del cliente "customer"

espero vuestra ayuda
gracias

Elastix y a2Billing

Estimados,

A mi me pasa lo mismo, he creado el troncal, rates, proveedor, pero no puedo hacer que salga la llamada desde el asterisk a a2billigng.
Ej:
a2billing.php,1,did: [callerid_update] => 0
a2billing.php,1,did: [dialcommand_param_call_2did] => ,60,HiL(%timeout%:61000:30000)
a2billing.php,1,did: [description] => agi-config
a2billing.php,1,did: [asterisk_version] => 11_6_0
a2billing.php,1,did: [answer_call] => 1
a2billing.php,1,did: [play_audio] => 1
a2billing.php,1,did: [say_goodbye] => 0
a2billing.php,1,did: [play_menulanguage] => 0
a2billing.php,1,did: [force_language] => ES
a2billing.php,1,did: [intro_prompt] =>
a2billing.php,1,did: [min_credit_2call] => 200
a2billing.php,1,did: [min_duration_2bill] => 0
a2billing.php,1,did: [notenoughcredit_cardnumber] => 1
a2billing.php,1,did: [notenoughcredit_assign_newcardnumber_cid] => 0
a2billing.php,1,did: [use_dnid] => 1
a2billing.php,1,did: [no_auth_dnid] => Array
a2billing.php,1,did: (
a2billing.php,1,did: [0] => 2400
a2billing.php,1,did: [1] => 2300
a2billing.php,1,did: )
a2billing.php,1,did:
a2billing.php,1,did: [number_try] => 1
a2billing.php,1,did: [force_callplan_id] =>
a2billing.php,1,did: [say_balance_after_auth] => 0
a2billing.php,1,did: [say_balance_after_call] => 0
a2billing.php,1,did: [say_rateinitial] => 0
a2billing.php,1,did: [say_timetocall] => 1
a2billing.php,1,did: [auto_setcallerid] => 1
a2billing.php,1,did: [force_callerid] =>
a2billing.php,1,did: [cid_sanitize] => 0
a2billing.php,1,did: [cid_enable] => 0
a2billing.php,1,did: [cid_askpincode_ifnot_callerid] => 0
a2billing.php,1,did: [failover_lc_prefix] => 0
a2billing.php,1,did: [cid_auto_assign_card_to_cid] => 1
a2billing.php,1,did: [callerid_authentication_over_cardnumber] => 0
a2billing.php,1,did: [sip_iax_friends] => 1
a2billing.php,1,did: [sip_iax_pstn_direct_call_prefix] => 555
a2billing.php,1,did: [sip_iax_pstn_direct_call] => 1
a2billing.php,1,did: [ivr_voucher] => 0
a2billing.php,1,did: [ivr_voucher_prefix] =>
a2billing.php,1,did: [jump_voucher_if_min_credit] => 0
a2billing.php,1,did: [dialcommand_param] => ,60,HRrL(%timeout%:61000:30000)
a2billing.php,1,did: [dialcommand_param_sipiax_friend] => ,60,HiL(3600000:61000:30000)
a2billing.php,1,did: [switchdialcommand] => 1
a2billing.php,1,did: [failover_recursive_limit] => 2
a2billing.php,1,did: [maxtime_tocall_negatif_free_route] => 5400
a2billing.php,1,did: [send_reminder] => 0
a2billing.php,1,did: [record_call] => 0
a2billing.php,1,did: [monitor_formatfile] => gsm
a2billing.php,1,did: [agi_force_currency] =>
a2billing.php,1,did: [currency_association] => Array
a2billing.php,1,did: (
a2billing.php,1,did: [0] => usd:dollars
a2billing.php,1,did: [1] => mxn:pesos
a2billing.php,1,did: [2] => eur:euros
a2billing.php,1,did: [3] => all:credit
a2billing.php,1,did: )
a2billing.php,1,did:
a2billing.php,1,did: [local_dialing_addcountryprefix] => 0
a2billing.php,1,did: [max_call_call_2_did] => 3600
a2billing.php,1,did: [file_conf_enter_destination] => silence/1
a2billing.php,1,did: [conf_order_menulang] => en:fr:es
a2billing.php,1,did: [callback_bill_1stleg_ifcall_notconnected] => 1
a2billing.php,1,did: [international_prefixes] => Array
a2billing.php,1,did: (
a2billing.php,1,did: [0] => 011
a2billing.php,1,did: [1] => 00
a2billing.php,1,did: [2] => 09
a2billing.php,1,did: [3] => 1
a2billing.php,1,did: )
a2billing.php,1,did:
a2billing.php,1,did: [extracharge_did] => Array
a2billing.php,1,did: (
a2billing.php,1,did: [0] => 1800
a2billing.php,1,did: [1] => 1900
a2billing.php,1,did: )
a2billing.php,1,did:
a2billing.php,1,did: [extracharge_fee] => Array
a2billing.php,1,did: (
a2billing.php,1,did: [0] => 0
a2billing.php,1,did: [1] => 0
a2billing.php,1,did: )
a2billing.php,1,did:
a2billing.php,1,did: [extracharge_buyfee] => Array
a2billing.php,1,did: (
a2billing.php,1,did: [0] => 0
a2billing.php,1,did: [1] => 0
a2billing.php,1,did: )
a2billing.php,1,did:
a2billing.php,1,did: [maxtime_tounlimited_calls] => 5400
a2billing.php,1,did: [maxtime_tofree_calls] => 5400
a2billing.php,1,did: [callplan_deck_minute_threshold] =>
a2billing.php,1,did: [disable_announcement_seconds] => 0
a2billing.php,1,did: [verbosity_level] => 4
a2billing.php,1,did: [logging_level] => 4
a2billing.php,1,did: [dial_balance_reservation] => 0.25
a2billing.php,1,did: [cid_auto_create_card] => 0
a2billing.php,1,did: [cid_auto_create_card_len] => 10
a2billing.php,1,did: [cid_auto_create_card_typepaid] => POSTPAID
a2billing.php,1,did: [cid_auto_create_card_credit] => 0
a2billing.php,1,did: [cid_auto_create_card_credit_limit] => 0
a2billing.php,1,did: [cid_auto_create_card_tariffgroup] => 1
a2billing.php,1,did: [busy_timeout] => 1
a2billing.php,1,did: [callback_reduce_balance] => 1
a2billing.php,1,did: [ivr_enable_locking_option] => 0
a2billing.php,1,did: [ivr_enable_account_information] => 0
a2billing.php,1,did: [ivr_enable_ivr_speeddial] => 0
a2billing.php,1,did: [play_rate_cents_if_lower_one] => 0
a2billing.php,1,did: [callback_beep_to_enter_destination] => 0
a2billing.php,1,did: [cid_prompt_callback_confirm_phonenumber] => 0
a2billing.php,1,did: [logger_enable] => 1
a2billing.php,1,did: [log_file] => /var/log/a2billing/a2billing.log
a2billing.php,1,did: [dialcommand_param_call_2did ] => |30|HL(3600000:61000:30000)
a2billing.php,1,did: [currency_association_internal] => Array
a2billing.php,1,did: (
a2billing.php,1,did: [usd] => dollars
a2billing.php,1,did: [mxn] => pesos
a2billing.php,1,did: [eur] => euros
a2billing.php,1,did: [all] => credit
a2billing.php,1,did: )
a2billing.php,1,did:
a2billing.php,1,did: [file_conf_enter_menulang] => prepaid-menulang
a2billing.php,1,did: [ivr_voucher_prefixe] => 8
a2billing.php,1,did: [cheat_on_announcement_time] => 0
a2billing.php,1,did: )
a2billing.php,1,did:
a2billing.php,1,did: file:a2billing.php - line:117 - uniqueid: - IDCONFIG : 1
a2billing.php,1,did: file:a2billing.php - line:118 - uniqueid: - MODE : did
a2billing.php,1,did: file:a2billing.php - line:130 - uniqueid: - AGI Request:
a2billing.php,1,did: Array
a2billing.php,1,did: (
a2billing.php,1,did: [agi_request] => a2billing.php
a2billing.php,1,did: [agi_channel] => SIP/201-0000001c
a2billing.php,1,did: [agi_language] => en
a2billing.php,1,did: [agi_type] => SIP
a2billing.php,1,did: [agi_uniqueid] => 1386703417.42
a2billing.php,1,did: [agi_version] => 11.6.0
a2billing.php,1,did: [agi_callerid] => 201
a2billing.php,1,did: [agi_calleridname] => device
a2billing.php,1,did: [agi_callingpres] => 0
a2billing.php,1,did: [agi_callingani2] => 0
a2billing.php,1,did: [agi_callington] => 0
a2billing.php,1,did: [agi_callingtns] => 0
a2billing.php,1,did: [agi_dnid] => 1540396137
a2billing.php,1,did: [agi_rdnis] => unknown
a2billing.php,1,did: [agi_context] => a2billing-did
a2billing.php,1,did: [agi_extension] => 1540396137
a2billing.php,1,did: [agi_priority] => 1
a2billing.php,1,did: [agi_enhanced] => 0.0
a2billing.php,1,did: [agi_accountcode] =>
a2billing.php,1,did: [agi_threadid] => 46940728473920
a2billing.php,1,did: [agi_arg_1] => 1
a2billing.php,1,did: [agi_arg_2] => did
a2billing.php,1,did: )
a2billing.php,1,did:
a2billing.php,1,did: file:a2billing.php - line:131 - uniqueid: - [INFO : A2Billing - v2.0.7]
a2billing.php,1,did: file:Class.A2Billing.php - line:718 - uniqueid:1386703417.42 - get_agi_request_parameter = 201 ; SIP/201-0000001c ; 1386703417.42 ; ; 1540396137
a2billing.php,1,did: file:a2billing.php - line:622 - uniqueid:1386703417.42 - [ANSWER CALL]
> 0x1893cec0 -- Probation passed - setting RTP source address to 10.7.0.156:40724
a2billing.php,1,did: file:a2billing.php - line:635 - uniqueid:1386703417.42 - [DID CALL - [CallerID=201]:[DID=1540396137]
a2billing.php,1,did: file:a2billing.php - line:653 - uniqueid:1386703417.42 - SELECT cc_did.id, cc_did_destination.id, billingtype, tariff, destination, voip_call, username, useralias, connection_charge, selling_rate, did, aleg_carrier_connect_charge, aleg_carrier_cost_min, aleg_retail_connect_charge, aleg_retail_cost_min, aleg_carrier_initblock, aleg_carrier_increment, aleg_retail_initblock, aleg_retail_increment, aleg_timeinterval, aleg_carrier_connect_charge_offp, aleg_carrier_cost_min_offp, aleg_retail_connect_charge_offp, aleg_retail_cost_min_offp, aleg_carrier_initblock_offp, aleg_carrier_increment_offp, aleg_retail_initblock_offp, aleg_retail_increment_offp FROM cc_did, cc_did_destination, cc_card WHERE id_cc_did=cc_did.id and cc_card.status=1 and cc_card.id=id_cc_card and cc_did_destination.activated=1 and cc_did.activated=1 and did='1540396137' AND cc_did.startingdate<= CURRENT_TIMESTAMP AND (cc_did.expirationdate > CURRENT_TIMESTAMP OR cc_did.expirationdate IS NULL AND cc_did_destination.validated=1 OR cc_did.expirationdate = '0000-00-00 00:00:00') ORDER BY priority ASC
a2billing.php,1,did: file:a2billing.php - line:655 - uniqueid:1386703417.42 -
-- AGI Script a2billing.php completed, returning 4
== Spawn extension (a2billing-did, 1540396137, 1) exited non-zero on 'SIP/201-0000001c'