Instalar un sistema de facturación para Asterisk

Imagen de RazaMetaL

Instalar un sistema de facturación para Asterisk.

Asterisk nos permite tener telefonía IP con varios protocolos y con varios proveedores, esto es genial porque nos permite ahorrar en nuestras comunicaciones, en especial las de larga distancia. La siguiente guía describe como instalar A2billing para Asterisk. A2billing es un completo sistema de tarificación para Asterisk, es decir que nos muestra el importe a cobrar de acuerdo al tiempo de duración y destino de una llamada. Un sistema de tarificación puede ser utilizado en un locutorio público, hotel, etc. El administrador puede modificar y ejecutar tareas que controlen el sistema a través de una interfaz web. El operador tiene una interfaz diferente donde se muestra el reporte horario y el importe de las llamadas realizadas.

Con la presente configuración una persona levantará el auricular, discará el número y al terminar la llamada en la pantalla del operador aparecera la duración de la llamada y su importe monetario. También nos permitirá obtener datos estadísticos de la actividad y minutos consumidos por destino. Nos permitira también dar un periodo inicial de gracia en tiempo para que no se cobren llamadas que no sean conectadas.

Para visualizar los gráficos estadísticos requierimos de un paquete externo llamado jpgraph y se lo puede descargar desde [url]http://web.comhem.se/jpgraph/jpgdownloads/jpgraph-2.1.4.tar.gz[/url] . Lo podemos instalar con aptitude para php4 (no para php5):


aptitude install libphp-jpgraph

Para instalar A2billing es necesario tener instalado Asterisk. En el siguiente link esta un manual anterior de mi autoria en el cual se detalla el proceso de instalación de Asterisk y FreePBX en Debian y Ubuntu para administrar nuestro PBX sin necesidad de ser un gurú. Al igual que en la presente guía, el mismo procedimiento de instalación puede ser aplicado para cualquier otra distribución, claro esta obiando la parte en la que se hace referencia a la utilización de herramientas de Debian como apt-get, aptitude y la ubicación del 'DocumentRoot' de Apache.

El link para instalar FreePBX en Debian es: [url]http://www.ecualug.org/?q=2006/04/06/comos/instalar_asterisk_y_freepbx_en_debian[/url]

Una vez que Asterisk y FreePBX estan funcionando es hora de instalar A2billing. Necesitamos algunos paquetes adicionales para que A2billing pueda ser instalado, estos son:

php-pcntl : revisamos si lo tenemos instalado con el comando 'php -m | grep pcntl'. Si la salida de este comando no nos muestra nada es porque nos hace falta php5-cli, lo instalamos:


aptitude install php5-cli

1.- Descargamos a2billing:

cd /usr/src
mkdir a2billing
cd a2billing
wget http://asterisk2billing.org/download.php?get=Asterisk2Billing_release_Chameleon_v1_2_2.tar.gz
tar -zvxf Asterisk2Billing_release_Chameleon_v1_2_2.tar.gz
cd trunk

2.- Preparamos la base de datos mysql:

Creamos el usuario con el script que a2billing tiene para este efecto, los parámetros predefinidos son los siguientes y se pueden modificar mas adelante:


Database name is: mya2billing
Database user is: a2billinguser
User password is: a2billing


cd /usr/src/a2billing/trunk/DataBase/mysql/Mysql-5.x
mysql -u root -p"password_de_root" < a2billing-MYSQL-createdb-user.sql

Creamos la base de datos y su estructura con el script, pero antes agregaremos una línea que indica que base de datos vamos a utilizar, caso contrario el script se detendrá y nos dará un mensaje de error:


--
-- A2Billing database - Create database schema
--

# Agregamos esta línea
USE mya2billing;

Ejecutamos el script para crear la estructura de la base mya2billing:

mysql -u root -p"password_de_root" < a2billing-mysql-schema-MYSQL.5.X-v1.2.2.sql

Si nos no ha dado error entonces podemos continuar con la configuración de a2billing.

Copiamos el archivo a2billing.conf al directorio de configuración de Asterisk:


cp /usr/src/a2billing/trunk/a2billing.conf /etc/asterisk/a2billing.conf

3.- Configuración de A2billing.
El archivo a2billing.conf contiene la información que la aplicación necesita para funcionar de manera adecuada, esto es parámetros de conección a la base de datos, parámetros de la interfaz de administración y de usuario, etc.

Modificaremos inicialmente los parámetros de conección a la base de datos:


; Global Database Setup

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

Luego los parámetros de la interfaz del usuario:

; CUSTOMIZATION OVER THE CUSTOMER INTERFACE
[webcustomerui]
; Enable to display the customer info payment on the customer interface - yes or no
customerinfo=yes

; Enable the Call history on the customer interface - yes or no
cdr=yes

; Enable the invoice on the customer interface - yes or no
invoice=yes

; Enable the paypal payment on the customer interface - yes or no
voucher=yes

; Enable the paypal payment on the customer interface - yes or no
paypal=yes

; Let users use Speed Dial capabilities - yes or no
speeddial=yes

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

; Show Ratecard option on the customer interface - yes or no
ratecard=yes

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

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

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

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

;ip address of asterisk server that would be use by the web-phone
webphoneserver=localhost

; Let users add new callerid
callerid=yes

; this is the limit of the amount of callerID that can be add by the customer
limit_callerid=5

; Define the email to send for the notification and error report - new DID assignation will be report there
error_email=tu-mail@tudomino.com

Los parámetros para permitir que un usuario nuevo se de de alta no la vamos a utlizar:

[signup]
; enable the signup module
enable_signup = 0

Los parámetros de PayPal los configuramos a nuestro gusto y antojo.

Nos saltamos hasta los parámetros para el respaldo:

[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

Los parámetros de la interfaz web:

; configuration for the Web interface
[webui]

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

; API have a security key to valid the http request, the key have to be sent after apply md5
; char should be [a-z,A-Z,0-9]
api_security_key = Ae87v56zzl34v

; API restrict the IP authorized to make a request define here the list of ips separate by ;
api_ip_auth = 127.0.0.1

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

; Log file to store the SOAP API requests
soap_logfile = /tmp/api_soap_request.log

; Email of the admin (not used yet)
email_admin = tu-email@tudominio.com

; Card lenght
len_cardnumber = 5

; Alias-Card lenght
len_aliasnumber = 5

; Voucher lenght
len_voucher = 15

; MOH base directory
dir_store_mohmp3 = /var/lib/asterisk/mohmp3

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

;MANAGER CONNECTION PARAMETERS
manager_host = localhost
;manager_username = myasterisk
;manager_secret = mycode
manager_username = admin
manager_secret = el-mismo-secret-que-tenemos-en-/etc/asterisk/manager.conf-para-el usuario-admin

; Allow to display the help section inside the admin interface (YES - NO)
show_help = YES

; Parameter of the upload
; PLEASE CHECK ALSO THE VALUE IN YOUR PHP.INI THE LIMIT IF 2MG BY DEFAULT
my_max_file_size_import = 512000
my_max_file_size = 512000 ; in bytes

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

;Parameter of the upload
my_max_file_size_audio=3072000 ; in bytes

; the file type extensions allowed to be uploaded such as "gsm, mp3, wav" (separate by ,)
file_ext_allow = gsm, mp3, wav

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

; ENABLE THE CDR VIEWER TO LINK ON THE MONITOR FILES (YES - NO)
link_audio_file = NO

; PATH TO LINK ON 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 = YES

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

;base currency define the default currency that you want to use to setup your system (see the file /etc/asterisk/rates.inc to know the currency code)
base_currency = usd

; currency_choose allow you to great a set of currencies to let the customer select the most appropriate ("all" can be used)
currency_choose = usd, eur, cad, hkd

; field to export in csv from cc_card table
card_export_field_list = creationdate, username, credit, lastname, firstname

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

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

Buscamos la sección referente al log y la modificamos de la siguiente manera:

; Active the logging of the application
; logging is optimized to write all the logs at once :D
logger_enable=YES

; File to log
log_file=/var/log/asterisk/a2billing.log

Mas configuración de la plataforma:

; play the goodbye message when the user finish
say_goodbye=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 install)
force_language=

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

; lenght of the cardnumber (amount of digits)
len_cardnumber=5

; Alias-Card lenght
len_aliasnumber = 5

; Voucher lenght
len_voucher = 15

; this is the minimum amount of credit to use the application
min_credit_2call=0

Esta parte es importante cuando quieres que los primeros segundos no sean cobrados, algunas veces sucede que la llamada no se conecta por algun motivo y si al Cliente le cobras por el intento es seguro se va a enojar y no le quedarán mas ganas de regresar. En la siguente configuración se da una gracia de 6 segundos, luego de esto el sistema empieza a tarificar.


; this is the minimum duration in seconds of a call in order to be billed
; any call with a length less than min_duration_2bill will have a 0 cost
; usefull not to charge callers for system errors when a call was answered but it actually didn't connect
min_duration_2bill=6

; if user doesnt have enough credit to call a destination XXX prompt him to enter an other cardnumber
notenoughcredit_cardnumber=NO

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

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

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

;number of time the user can dial different number
number_try=3

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

; 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 time the user can call (values : yes - no)
say_timetocall=NO

; enable the presentation of a callerID number
auto_setcallerid=YES

; If set, and auto_setcallerid is enabled, the number is sent as CID always
force_callerid=

; If force_callerid is not set, then this ensures that CID is set to one of the
ccard's configured caller IDs or blank if none available.
; NO - disable this feature, caller ID can be anything.
; CID - Caller ID must be one of the customers caller IDs
; DID - Caller ID must be one of the customers DID nos.
; BOTH - Caller ID must be one of the above two items.
cid_sanitize=NO

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

; if the cid doesnt exist you can then ask a cardnumber to the calling party in order to authenticate the caller
cid_askpincode_ifnot_callerid=NO

; if the callerID, this option will allow the system to add it automatically and create a cardnumber to hook them up.
cid_auto_create_card=NO

; if the callerID authenticate is on, this option will allow the assign the cardnumber enter to the callerID if the callerID wasnt in the DB
cid_auto_assign_card_to_cid=YES

; If cid_auto_create_card has been set to YES, the following option will define with which parameters the card will be create
;
; billing type of the new card
; ( value : POSTPAY or PREPAY)
cid_auto_create_card_typepaid=POSTPAY
; amount of credit of the new card
cid_auto_create_card_credit=0

; if postpay define here 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=6

; if we want to check the 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 define a prefix for the dialed phonenumber to call directly a pstn number
; values : number
sip_iax_pstn_direct_call_prefix=9

; this will enable a prompt to enter your destination number_try
; 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

; 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=

; 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
; 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="|30|HL(%timeout%:61000:30000)"
dialcommand_param="||HrL(%timeout%:61000:30000)"

; by default (3600000 = 1HOUR MAX CALL)
dialcommand_param_sipiax_friend="|30|HL(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 troubles, try it out
switchdialcommand=NO

; When a call find a negative route or a free route is adviced to limite the call duration : amount in secons
maxtime_tocall_negatif_free_route = 5400

; enable to send a reminder mail to the user when they are under min_credit_2call
send_reminder=NO

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

; format of the recorded monitor file
monitor_formatfile=gsm

;base currency define the default currency that you want to use to setup your system (see the file /etc/asterisk/rates.inc to know the currency code)
base_currency = usd

; 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 =

; CURRENCY SECTION
; Define all the audio (without extension) that you want to play according to currency (use , to separate, ie "usd:prepaid-dollar,mxn:pesos,eur:Euro,all:credit")
currency_association = usd:prepaid-dollar,mxn:pesos,eur:euro,all:credit

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

; Please enter here the file 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

4.- Instalamos la interfaz web para la administración de A2billing para se abra cuando dirijamos el navegador a http://localhost/billing-admin . Por defecto apache en Debian tiene el parámetro DocumentRoot en /var/www :


cp -rf /usr/src/a2billing/trunk/A2Billing_UI /var/www
cd /var/www
mv A2Billing_UI billing-admin
chmow 777 /etc/asterisk
mkdir /var/lib/asterisk/mohmp3/acc_1
mkdir /var/lib/asterisk/mohmp3/acc_2
mkdir /var/lib/asterisk/mohmp3/acc_3
mkdir /var/lib/asterisk/mohmp3/acc_4
mkdir /var/lib/asterisk/mohmp3/acc_5
mkdir /var/lib/asterisk/mohmp3/acc_6
mkdir /var/lib/asterisk/mohmp3/acc_7
mkdir /var/lib/asterisk/mohmp3/acc_8
mkdir /var/lib/asterisk/mohmp3/acc_9
mkdir /var/lib/asterisk/mohmp3/acc_10
chmod 777 /var/lib/asterisk/mohmp3/acc_*

5.- Modificamos los archivos de configuración de Asterisk para habilitar A2billing:
Agregamos al final de sip.conf:

#include sip_a2billing.conf

Agregamos al final de iax.conf:

#include iax_a2billing.conf

Agregamos al final de /etc/asterisk/musiconhold.conf :

; class definitions For A2Billing
acc_1 => mp3:/var/lib/asterisk/mohmp3/acc_1
acc_1 => mp3:/var/lib/asterisk/mohmp3/acc_2
acc_1 => mp3:/var/lib/asterisk/mohmp3/acc_3
acc_1 => mp3:/var/lib/asterisk/mohmp3/acc_4
acc_1 => mp3:/var/lib/asterisk/mohmp3/acc_5
acc_1 => mp3:/var/lib/asterisk/mohmp3/acc_6
acc_1 => mp3:/var/lib/asterisk/mohmp3/acc_7
acc_1 => mp3:/var/lib/asterisk/mohmp3/acc_8
acc_1 => mp3:/var/lib/asterisk/mohmp3/acc_9
acc_1 => mp3:/var/lib/asterisk/mohmp3/acc_10

Editamos extensions_custom.conf para agregar el contexto a2billing que utilizarán las extensiones a las cuales queremos tarificar:

[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

6.- Dirigimos nuestro navegador hacia http://localhost/billing-admin e ingresamos con la siguiente información:

login: root
passwd: myroot

ó

login: admin
passwd: mypassword

Recuerden cambiar la contraseña desde la interfaz de administración.

7.- Instalamos la interfaz para el usuario final/Cliente/Operador para que sea accesible desde http://localhost/billing :

cp -rf /usr/src/a2billing/trunk/A2BCustomer_UI /var/www/billing

8.- Instalamos los scripts AGI:

cd /usr/src/a2billing/trunk/A2Billing_AGI
cp a2billing.php /var/lib/asterisk/agi-bin/.
cp -rf libs_a2billing /var/lib/asterisk/agi-bin/.
chmod +x /var/lib/asterisk/agi-bin/a2billing.php
cp /usr/src/a2billing/trunk/A2Billing_AGI/sounds/* /var/lib/asterisk/sounds/.
cp /usr/src/a2billing/trunk/A2Billing_AGI/sounds/en/* /var/lib/asterisk/sounds/.

9.- Un detalle que me parece importante es el saber desde que dispositivo se hizo la llamada. Es posible que varios dispositivos utilizen una misma tarjeta pero el operador no va a saber desde que dispositivo se hizo una llamada que debe cobrar y esto puede ser un problema.

La siguiente modificación mostrará en los reportes una columna adicional llamada source que indica la extension desde la que se realizó la llamada.

Modificamos el archivo balance.php que se encuentra en /var/www/billing :

cd /var/www/billing/balance.php

Donde dice (en la línea 113):

$FG_COL_QUERY='t1.starttime, t1.calledstation, t1.destination, t1.sessiontime,t1.username, t1.terminatecause, t1.sipiax, t1.calledrate, t1.sessionbill';

Debe decir:

$FG_COL_QUERY='t1.starttime, t1.src, t1.calledstation, t1.destination, t1.sessiontime, t1.username, t1.terminatecause, t1.sipiax, t1.calledrate, t1.sessionbill';

Y donde dice:

//$FG_TABLE_COL[]=array ("Source", "source", "20%", "center", "SORT", "30");

Debe decir:

$FG_TABLE_COL[]=array ("Source", "src", "9%", "center", "SORT", "30")

Finalmente reinciamos asterisk para aplicar los cambios:

asterisk -r -x "reload"

Comentarios

Cita: Hola, instale el

Imagen de RazaMetaL

[quote]Hola, instale el a2billing e configure tambien con este manual, consigo realizar llamadas, pero no ai forma que el sistema tarife las llamdas.[/quote]

Lo mas probable es que no estes enviando las llamadas a un contexto apropiado.

[quote]Si queres entra en contacto por mi MSN: monica@addphone.net[/quote]

No. Prefiero seguir el hilo aqui en el foro, asi los usuarios de este foro se benefician de tu experiencia y de la posible solucion con la que aqui te colaboremos.

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

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({});

Amigos, Estoy tratando de

Amigos,

Estoy tratando de poner A2BILLING, segui los procedimientos de ecualug indica en (instalar_un_sistema_de_facturacion_para_asterisk) sin embargo cuando quiero crear usuarios SIP e IAX me genera el siguiente error por la interface web:

Could not open buddy file '/etc/asterisk/additional_a2billing_sip.conf'

La version de A2Billing es 1.2.2 y la de mi asterisk es 1.2.18, lei por ahi que se trata de permisos de carpeta /etc/asterisk y/o de archivos que contiene esta carpeta pero no creo que sea ese el problema porque todos están con chmod 777 asi que tienen todos los permisos, luego vi en un foro que es cuestion de variar algunos parametros en los archivos :

/var/www/html/A2Billing_UI/Public/CC_generate_friend_file.php
/var/www/html/A2Billing_UI/Public/A2B_entity_card_multi.php
/var/www/html/A2Billing_UI/lib/Form/Class.FormHandler.inc.php

Por otro lado si ya los permisos de la carpeta /etc/asterisk son 777 y en /etc/httpd/conf/hhtp.conf tengo:

User apache
Group apache

No quiere decir que ya tengo los permisos par todos los user??

pero igual, si alguien me puede dar una ayudadita se lo agradeceria mucho.

Gracias por su ayuda de antemano.

Tienes un problema de

Imagen de RazaMetaL

Tienes un problema de permisologia, apache no puede escribir en la carpeta /etc/asterisk. Trata haciendo:


chown -R asterisk:www-data /etc/asterisk

En el ejemplo www-data es el grupo al cual pertenece apache, reemplazalo con el grupo correspondiente en tu distribucion.

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

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({});

a2billing listo pero no tarifica

Tengo instalado el trixbox 2.2 y el a2billing lo instalé con las instrucciones de
http://trac.asterisk2billing.org/cgi-bin/trac.cgi/wiki/TrixboxInstall#SettingupA2Billing_UI
La verdad no tuve ningun problema con la creacion y el registro de cuentas SIP, se pueden realizar llamadas pero no tarifica!!!
En Call Report no muestra ninguna llamada (No data found !!!) y en las troncales dice que no se han consumido minutos,...

He revisado y las extensiones estan en el contexto correcto, quisiera saber si alguien conoce la solucion a este problema

Gracias

Que contexto estan

Imagen de RazaMetaL

Que contexto estan utilizando tus extensiones?

Muestranos la salida en la consola de asterisk justo cuando haces una llamada.


tail -f /var/log/asterisk/full

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

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({});

Hola mira hice lo que me

Hola mira hice lo que me dijiste veo que el usuarui es apache asi que lo que hice fue lo siguiente :
[root@localhost asterisk]# cat /etc/group | grep apache
apache:x:48:
[root@localhost asterisk]# chown -R apache:apache /etc/asterisk/

y Ahora tengo :

[root@localhost asterisk]# ls -la
total 548
drwxrwxrwx 2 apache apache 4096 ago 3 11:19 .
drwxr-xr-x 111 root root 12288 ago 3 04:02 ..
-rw-r--r-- 1 apache apache 176 jul 19 01:03 1
-rwxrwxrwx 1 apache apache 16997 jul 22 23:10 a2billing.conf
-rw-rw-rw- 1 apache apache 0 jul 22 19:31 additional_a2billing_iax.conf
-rw-rw-rw- 1 apache apache 0 jul 22 19:31 additional_a2billing_sip.conf
-rwxrwxrwx 1 apache apache 140 jun 13 23:08 adsi.conf
-rwxrwxrwx 1 apache apache 840 jun 13 23:08 adtranvofr.conf
-rwxrwxrwx 1 apache apache 2136 jun 13 23:08 agents.conf
-rwxrwxrwx 1 apache apache 2227 jun 13 23:08 alarmreceiver.conf
-rwxrwxrwx 1 apache apache 748 jun 13 23:08 alsa.conf
-rwxrwxrwx 1 apache apache 3260 jun 13 23:08 asterisk.adsi
-rwxrwxrwx 1 apache apache 403 jun 13 23:08 asterisk.conf
-rwxrwxrwx 1 apache apache 2191 jun 13 23:08 cdr.conf
-rwxrwxrwx 1 apache apache 388 jun 13 23:08 cdr_custom.conf
-rwxrwxrwx 1 apache apache 59 jun 13 23:08 cdr_manager.conf
-rwxrwxrwx 1 apache apache 221 jun 13 23:08 cdr_odbc.conf
-rwxrwxrwx 1 apache apache 204 jun 13 23:08 cdr_pgsql.conf
-rwxrwxrwx 1 apache apache 159 jun 13 23:08 cdr_tds.conf
-rwxrwxrwx 1 apache apache 1655 jun 13 23:08 codecs.conf
-rwxrwxrwx 1 apache apache 191 jun 13 23:08 dnsmgr.conf
-rwxrwxrwx 1 apache apache 7744 jun 13 23:08 dundi.conf
-rwxrwxrwx 1 apache apache 585 jun 13 23:08 enum.conf
-rwxrwxrwx 1 apache apache 1375 jul 19 01:06 extconfig.conf
-rwxrwxrwx 1 apache apache 0 jul 14 13:06 extensions_a2billing.conf
-rwxrwxrwx 1 apache apache 1083 jun 13 23:08 extensions.ael
-rwxrwxrwx 1 apache apache 3776 ago 3 11:18 extensions.conf
-rwxrwxrwx 1 apache apache 137 jul 14 13:57 extensions_custom.conf
-rwxrwxrwx 1 apache apache 220 ago 3 11:19 extensions_extra.conf
-rwxrwxrwx 1 apache apache 1656 jun 13 23:08 features.conf
-rwxrwxrwx 1 apache apache 929 jun 13 23:08 festival.conf
-rwxrwxrwx 1 apache apache 282 jul 22 16:06 iax.conf
-rwxrwxrwx 1 apache apache 2445 jul 18 23:05 iaxprov.conf
-rwxrwxrwx 1 apache apache 21797 jun 13 23:08 indications.conf
-rwxrwxrwx 1 apache apache 2158 jun 13 23:08 logger.conf
-rwxrwxrwx 1 apache apache 1747 jul 22 18:02 manager.conf
-rwxrwxrwx 1 apache apache 934 jun 13 23:08 meetme.conf
-rwxrwxrwx 1 apache apache 2249 jun 13 23:08 mgcp.conf
-rwxrwxrwx 1 apache apache 8181 jun 13 23:08 misdn.conf
-rwxrwxrwx 1 apache apache 2514 jun 13 23:08 modem.conf
-rwxrwxrwx 1 apache apache 1402 jun 13 23:08 modules.conf
-rwxrwxrwx 1 apache apache 2327 jul 11 23:48 musiconhold.conf
-rwxrwxrwx 1 apache apache 953 ago 1 17:24 ooh323_additional.conf
-rwxrwxrwx 1 apache apache 3477 jul 17 23:18 ooh323.conf
-rwxrwxrwx 1 apache apache 1821 jun 13 23:08 osp.conf
-rwxrwxrwx 1 apache apache 1163 jun 13 23:08 oss.conf
-rwxrwxrwx 1 apache apache 1418 jun 13 23:08 phone.conf
-rwxrwxrwx 1 apache apache 81 jun 13 23:08 privacy.conf
-rwxrwxrwx 1 apache apache 6776 jun 13 23:08 queues.conf
-rwxrwxrwx 1 apache apache 579 jun 13 23:08 res_odbc.conf
-rwxrwxrwx 1 apache apache 6961 jun 13 23:08 rpt.conf
-rwxrwxrwx 1 apache apache 427 jun 16 22:13 rtp.conf
-rwxrwxrwx 1 apache apache 0 jul 14 13:52 sip_a2billing.conf
-rwxrwxrwx 1 apache apache 1289 jul 22 18:37 sip.conf
-rwxrwxrwx 1 apache apache 315 jun 13 23:08 sip_notify.conf
-rwxrwxrwx 1 apache apache 1282 jun 13 23:08 skinny.conf
-rwxrwxrwx 1 apache apache 1384 jun 13 23:08 telcordia-1.adsi
-rwxrwxrwx 1 apache apache 9935 jun 13 23:08 voicemail.conf
-rwxrwxrwx 1 apache apache 2774 jun 13 23:08 vpb.conf
-rwxrwxrwx 1 apache apache 18774 jun 13 23:08 zapata.conf
[root@localhost asterisk]#

Sin embargo todavia tengo el mismo problema que cuando quiero crear un user SIP me da Could not open buddy file '/etc/asterisk/additional_a2billing_sip.conf'

Ya reinicie el servicio de asterisk y el de /etc/init.d/httpd para estar seguro que tome efecto pero igual.

Quedo a la espera de su gentil ayuda.

Saludos,

Es cosa de permisos. Trata

Imagen de RazaMetaL

Es cosa de permisos. Trata con:


chmod -R 777 /etc/asterisk

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

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({});

a2billing listo pero no tarifica

RazaMetal, gracias por tu ayuda,..

En relacion al asunto de que no me tarifica el a2billing, estoy en lo siguiente:

Ya que estoy trabajando el a2billing en Trixbox 2.2, tengo entendido que no debo editar el extensions.conf ni sip.conf, sino los archivos extensions_a2billing.conf y additional_a2billing_sip.conf (me corrigen si me equivo), ya que extensions.conf incluye el extensions_custom.conf y este a su vez incluye el extensions_a2billing.conf, igual que el sip.conf e iax.conf incluyen additional_a2billing_sip.conf y additional_a2billing_iax.conf respectivamente (archivos de configuracion creados por el autoinstaller del a2billing para trixbox 2.2). Asi tengo mis archivos:

additional_a2billing_sip.conf
[8523854719]
type=friend
username=8523854719
accountcode=8523854719
regexten=8523854719
callerid=648550015575267
amaflags=billing
secret=7686349100
nat=1
dtmfmode=RFC2833
qualify=1
canreinvite=yes
disallow=all
allow=ulaw
allow= alaw
allow= gsm
allow= g729
host=dynamic
context=a2billing
regseconds=0
cancallforward=yes

extensions_a2billing.conf
[a2billing]
exten => _X.,1,Answer
exten => _X.,n,Wait(1)
exten => _X.,n,DeadAGI(a2billing.php|1)
exten => _X.,n,Hangup

Hasta aqui creo que el usuario SIP 8523854719 esta en el contexto correcto (a2billing)
(Este usuario SIP se registra bien y puede realizar llamadas utilizando XLITE)

En el archivo extensions_trixbox.conf esta el siguiente fragmento:
; un-comment the 6 lines below to work on incoming DIDs
;[custom-callingcard]
;exten => s,1,Answer
;exten => s,2,Wait,2
;exten => s,3,DeadAGI,a2billing.php
;exten => s,4,Wait,2
;exten => s,5,Hangup

Este contexto sirve para algo relacionado con el a2billing? toca habilitarlo?

Hize la captura del log al realizar una llamada y esto fue lo que obtuve con el comando tail -f /var/log/asterisk/full


tail -f /var/log/asterisk/full
Aug 8 18:12:40 DEBUG[3144] chan_sip.c: Stopping retransmission on '652b0fea727e1a864d22a07007b97d40@192.168.0.200' of Request 102: Match Found
Aug 8 18:12:44 DEBUG[3144] chan_sip.c: Stopping retransmission on '46235b8c21ad099c7b7b1500668f4219@192.168.0.200' of Request 102: Match Found
Aug 8 18:12:50 DEBUG[3144] chan_sip.c: Stopping retransmission on '1c561d50674d8d8223107eb42f057501@192.168.0.200' of Request 102: Match Found
Aug 8 18:12:52 DEBUG[3144] chan_sip.c: Setting NAT on RTP to 524288
Aug 8 18:12:52 DEBUG[3144] chan_sip.c: Stopping retransmission on 'Mjg2ODYwMGMyM2M4NmU3NWEwZjQyNmQxNmRjOGQ4NWU.' of Response 1: Match Found
Aug 8 18:12:52 DEBUG[3144] chan_sip.c: Setting NAT on RTP to 524288
Aug 8 18:12:52 DEBUG[3144] chan_sip.c: Checking SIP call limits for device 8523854719
Aug 8 18:12:52 DEBUG[3144] chan_sip.c: build_route: Contact hop:
Aug 8 18:12:52 DEBUG[3144] chan_sip.c: Stopping retransmission on 'Mjg2ODYwMGMyM2M4NmU3NWEwZjQyNmQxNmRjOGQ4NWU.' of Response 2: Match Found
Aug 8 18:12:53 DEBUG[3144] chan_sip.c: Stopping retransmission on '7928d6f17ac24d2c71c3a5306d80549f@192.168.0.200' of Request 102: Match Found
Aug 8 18:12:53 VERBOSE[4528] logger.c: a2billing.php|1: A2Billing AGI internal configuration:
Aug 8 18:12:53 VERBOSE[4528] logger.c: a2billing.php|1: Array
Aug 8 18:12:53 VERBOSE[4528] logger.c: a2billing.php|1: (
Aug 8 18:12:53 VERBOSE[4528] logger.c: a2billing.php|1: [debug] => 1
Aug 8 18:12:53 VERBOSE[4528] logger.c: a2billing.php|1: [asterisk_version] => 1_2
Aug 8 18:12:53 VERBOSE[4528] logger.c: a2billing.php|1: [answer_call] => 1
Aug 8 18:12:53 VERBOSE[4528] logger.c: a2billing.php|1: [play_audio] => 1
Aug 8 18:12:53 VERBOSE[4528] logger.c: a2billing.php|1: [say_goodbye] =>
Aug 8 18:12:53 VERBOSE[4528] logger.c: a2billing.php|1: [play_menulanguage] =>
Aug 8 18:12:53 VERBOSE[4528] logger.c: a2billing.php|1: [force_language] =>
Aug 8 18:12:53 VERBOSE[4528] logger.c: a2billing.php|1: [intro_prompt] =>
Aug 8 18:12:53 VERBOSE[4528] logger.c: a2billing.php|1: [min_credit_2call] => 0
Aug 8 18:12:53 VERBOSE[4528] logger.c: a2billing.php|1: [min_duration_2bill] => 0
Aug 8 18:12:53 VERBOSE[4528] logger.c: a2billing.php|1: [notenoughcredit_cardnumber] => 1
Aug 8 18:12:53 VERBOSE[4528] logger.c: a2billing.php|1: [notenoughcredit_assign_newcardnumber_cid] => 1
Aug 8 18:12:53 VERBOSE[4528] logger.c: a2billing.php|1: [use_dnid] => 1
Aug 8 18:12:53 VERBOSE[4528] logger.c: a2billing.php|1: [no_auth_dnid] => Array
Aug 8 18:12:53 VERBOSE[4528] logger.c: a2billing.php|1: (
Aug 8 18:12:53 VERBOSE[4528] logger.c: a2billing.php|1: [0] => 2400
Aug 8 18:12:53 VERBOSE[4528] logger.c: a2billing.php|1: [1] => 2300
Aug 8 18:12:53 VERBOSE[4528] logger.c: a2billing.php|1: )
Aug 8 18:12:53 VERBOSE[4528] logger.c: a2billing.php|1:
Aug 8 18:12:53 VERBOSE[4528] logger.c: a2billing.php|1: [number_try] => 3
Aug 8 18:12:54 VERBOSE[4528] logger.c: a2billing.php|1: [force_callplan_id] =>
Aug 8 18:12:54 VERBOSE[4528] logger.c: a2billing.php|1: [say_balance_after_auth] => 1
Aug 8 18:12:54 VERBOSE[4528] logger.c: a2billing.php|1: [say_balance_after_call] =>
Aug 8 18:12:54 VERBOSE[4528] logger.c: a2billing.php|1: [say_rateinitial] =>
Aug 8 18:12:54 VERBOSE[4528] logger.c: a2billing.php|1: [say_timetocall] => 1
Aug 8 18:12:54 VERBOSE[4528] logger.c: a2billing.php|1: [auto_setcallerid] => 1
Aug 8 18:12:54 VERBOSE[4528] logger.c: a2billing.php|1: [force_callerid] =>
Aug 8 18:12:54 VERBOSE[4528] logger.c: a2billing.php|1: [cid_sanitize] =>
Aug 8 18:12:54 VERBOSE[4528] logger.c: a2billing.php|1: [cid_enable] =>
Aug 8 18:12:54 VERBOSE[4528] logger.c: a2billing.php|1: [cid_askpincode_ifnot_callerid] => 1
Aug 8 18:12:54 VERBOSE[4528] logger.c: a2billing.php|1: [cid_auto_assign_card_to_cid] => 1
Aug 8 18:12:54 DEBUG[3144] chan_sip.c: Stopping retransmission on '2991aa97096f1099173bf3a205bfdb4e@192.168.0.200' of Request 102: Match Found
Aug 8 18:12:54 VERBOSE[4528] logger.c: a2billing.php|1: [cid_auto_create_card] =>
Aug 8 18:12:54 VERBOSE[4528] logger.c: a2billing.php|1: [cid_auto_create_card_len] => 10
Aug 8 18:12:54 VERBOSE[4528] logger.c: a2billing.php|1: [cid_auto_create_card_typepaid] => POSTPAY
Aug 8 18:12:54 VERBOSE[4528] logger.c: a2billing.php|1: [cid_auto_create_card_credit] => 0
Aug 8 18:12:54 VERBOSE[4528] logger.c: a2billing.php|1: [cid_auto_create_card_credit_limit] => 1000
Aug 8 18:12:54 DEBUG[3144] chan_sip.c: Stopping retransmission on '0f019192742ca17c66aabc0233cd5c72@192.168.0.200' of Request 102: Match Found
Aug 8 18:12:54 VERBOSE[4528] logger.c: a2billing.php|1: [cid_auto_create_card_tariffgroup] => 6
Aug 8 18:12:54 VERBOSE[4528] logger.c: a2billing.php|1: [callerid_authentication_over_cardnumber] =>
Aug 8 18:12:55 VERBOSE[4528] logger.c: a2billing.php|1: [sip_iax_friends] =>
Aug 8 18:12:55 VERBOSE[4528] logger.c: a2billing.php|1: [sip_iax_pstn_direct_call_prefix] => 555
Aug 8 18:12:55 VERBOSE[4528] logger.c: a2billing.php|1: [sip_iax_pstn_direct_call] =>
Aug 8 18:12:55 VERBOSE[4528] logger.c: a2billing.php|1: [ivr_voucher] =>
Aug 8 18:12:55 VERBOSE[4528] logger.c: a2billing.php|1: [ivr_voucher_prefix] => 8
Aug 8 18:12:55 VERBOSE[4528] logger.c: a2billing.php|1: [jump_voucher_if_min_credit] =>
Aug 8 18:12:55 VERBOSE[4528] logger.c: a2billing.php|1: [extracharge_did] => Array
Aug 8 18:12:55 VERBOSE[4528] logger.c: a2billing.php|1: (
Aug 8 18:12:55 VERBOSE[4528] logger.c: a2billing.php|1: [0] =>
Aug 8 18:12:55 VERBOSE[4528] logger.c: a2billing.php|1: )
Aug 8 18:12:55 VERBOSE[4528] logger.c: a2billing.php|1:
Aug 8 18:12:55 VERBOSE[4528] logger.c: a2billing.php|1: [extracharge_fee] => Array
Aug 8 18:12:55 VERBOSE[4528] logger.c: a2billing.php|1: (
Aug 8 18:12:55 VERBOSE[4528] logger.c: a2billing.php|1: [0] =>
Aug 8 18:12:55 VERBOSE[4528] logger.c: a2billing.php|1: )
Aug 8 18:12:55 VERBOSE[4528] logger.c: a2billing.php|1:
Aug 8 18:12:55 VERBOSE[4528] logger.c: a2billing.php|1: [dialcommand_param] => |60|HRrL(%timeout%:61000:30000)
Aug 8 18:12:55 VERBOSE[4528] logger.c: a2billing.php|1: [dialcommand_param_sipiax_friend] => |60|HL(3600000:61000:30000)
Aug 8 18:12:55 VERBOSE[4528] logger.c: a2billing.php|1: [switchdialcommand] =>
Aug 8 18:12:56 VERBOSE[4528] logger.c: a2billing.php|1: [failover_recursive_limit] => 2
Aug 8 18:12:56 VERBOSE[4528] logger.c: a2billing.php|1: [maxtime_tocall_negatif_free_route] => 5400
Aug 8 18:12:56 VERBOSE[4528] logger.c: a2billing.php|1: [send_reminder] =>
Aug 8 18:12:56 VERBOSE[4528] logger.c: a2billing.php|1: [record_call] =>
Aug 8 18:12:56 VERBOSE[4528] logger.c: a2billing.php|1: [monitor_formatfile] => gsm
Aug 8 18:12:56 VERBOSE[4528] logger.c: a2billing.php|1: [agi_force_currency] =>
Aug 8 18:12:56 VERBOSE[4528] logger.c: a2billing.php|1: [currency_association] => Array
Aug 8 18:12:56 VERBOSE[4528] logger.c: a2billing.php|1: (
Aug 8 18:12:56 VERBOSE[4528] logger.c: a2billing.php|1: [0] => usd:dollars
Aug 8 18:12:56 VERBOSE[4528] logger.c: a2billing.php|1: [1] => mxn:pesos
Aug 8 18:12:56 VERBOSE[4528] logger.c: a2billing.php|1: [2] => eur:euros
Aug 8 18:12:56 VERBOSE[4528] logger.c: a2billing.php|1: [3] => all:credit
Aug 8 18:12:56 VERBOSE[4528] logger.c: a2billing.php|1: )
Aug 8 18:12:56 VERBOSE[4528] logger.c: a2billing.php|1:
Aug 8 18:12:56 VERBOSE[4528] logger.c: a2billing.php|1: [file_conf_enter_destination] => prepaid-enter-dest
Aug 8 18:12:56 VERBOSE[4528] logger.c: a2billing.php|1: [file_conf_enter_menulang] => prepaid-menulang2
Aug 8 18:12:56 VERBOSE[4528] logger.c: a2billing.php|1: [callback_bill_1stleg_ifcall_notconnected] => 1
Aug 8 18:12:56 VERBOSE[4528] logger.c: a2billing.php|1: [logger_enable] => 1
Aug 8 18:12:56 VERBOSE[4528] logger.c: a2billing.php|1: [log_file] => /tmp/a2billing.log
Aug 8 18:12:56 VERBOSE[4528] logger.c: a2billing.php|1: [currency_association_internal] => Array
Aug 8 18:12:57 VERBOSE[4528] logger.c: a2billing.php|1: (
Aug 8 18:12:57 VERBOSE[4528] logger.c: a2billing.php|1: [usd] => dollars
Aug 8 18:12:57 VERBOSE[4528] logger.c: a2billing.php|1: [mxn] => pesos
Aug 8 18:12:57 VERBOSE[4528] logger.c: a2billing.php|1: [eur] => euros
Aug 8 18:12:57 VERBOSE[4528] logger.c: a2billing.php|1: [all] => credit
Aug 8 18:12:57 VERBOSE[4528] logger.c: a2billing.php|1: )
Aug 8 18:12:57 VERBOSE[4528] logger.c: a2billing.php|1:
Aug 8 18:12:57 VERBOSE[4528] logger.c: a2billing.php|1: [ivr_voucher_prefixe] => 8
Aug 8 18:12:57 VERBOSE[4528] logger.c: a2billing.php|1: )
Aug 8 18:12:57 VERBOSE[4528] logger.c: a2billing.php|1:
Aug 8 18:12:57 VERBOSE[4528] logger.c: a2billing.php|1: file:a2billing.php - line:75 - IDCONFIG : 1
Aug 8 18:12:57 VERBOSE[4528] logger.c: a2billing.php|1: file:a2billing.php - line:76 - MODE : standard
Aug 8 18:12:57 VERBOSE[4528] logger.c: a2billing.php|1: file:a2billing.php - line:88 - AGI Request:
Aug 8 18:12:57 VERBOSE[4528] logger.c: a2billing.php|1: file:a2billing.php - line:89 - Array
Aug 8 18:12:57 VERBOSE[4528] logger.c: a2billing.php|1: (
Aug 8 18:12:57 VERBOSE[4528] logger.c: a2billing.php|1: [agi_request] => a2billing.php
Aug 8 18:12:57 VERBOSE[4528] logger.c: a2billing.php|1: [agi_channel] => SIP/8523854719-08970048
Aug 8 18:12:57 VERBOSE[4528] logger.c: a2billing.php|1: [agi_language] => en
Aug 8 18:12:57 VERBOSE[4528] logger.c: a2billing.php|1: [agi_type] => SIP
Aug 8 18:12:58 VERBOSE[4528] logger.c: a2billing.php|1: [agi_uniqueid] => 1186614772.32
Aug 8 18:12:58 VERBOSE[4528] logger.c: a2billing.php|1: [agi_callerid] => 648550015575267
Aug 8 18:12:58 VERBOSE[4528] logger.c: a2billing.php|1: [agi_calleridname] => 8523854719
Aug 8 18:12:58 VERBOSE[4528] logger.c: a2billing.php|1: [agi_callingpres] => 0
Aug 8 18:12:58 VERBOSE[4528] logger.c: a2billing.php|1: [agi_callingani2] => 0
Aug 8 18:12:58 VERBOSE[4528] logger.c: a2billing.php|1: [agi_callington] => 0
Aug 8 18:12:58 VERBOSE[4528] logger.c: a2billing.php|1: [agi_callingtns] => 0
Aug 8 18:12:58 VERBOSE[4528] logger.c: a2billing.php|1: [agi_dnid] => 2111111
Aug 8 18:12:58 VERBOSE[4528] logger.c: a2billing.php|1: [agi_rdnis] => unknown
Aug 8 18:12:58 VERBOSE[4528] logger.c: a2billing.php|1: [agi_context] => a2billing
Aug 8 18:12:58 VERBOSE[4528] logger.c: a2billing.php|1: [agi_extension] => 2111111
Aug 8 18:12:58 VERBOSE[4528] logger.c: a2billing.php|1: [agi_priority] => 3
Aug 8 18:12:58 VERBOSE[4528] logger.c: a2billing.php|1: [agi_enhanced] => 0.0
Aug 8 18:12:58 VERBOSE[4528] logger.c: a2billing.php|1: [agi_accountcode] => 8523854719
Aug 8 18:12:58 VERBOSE[4528] logger.c: a2billing.php|1: )
Aug 8 18:12:58 VERBOSE[4528] logger.c: a2billing.php|1:
Aug 8 18:12:58 VERBOSE[4528] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:602 - get_agi_request_parameter = 648550015575267 ; SIP/8523854719-08970048 ; 1186614772.32 ; 8523854719 ; 2111111
Aug 8 18:12:58 VERBOSE[4528] logger.c: a2billing.php|1: file:a2billing.php - line:138 - [ANSWER CALL]
Aug 8 18:12:58 VERBOSE[4528] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:1670 - SELECT credit, tariff, activated, inuse, simultaccess, typepaid, creditlimit, language, removeinterprefix, 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_card LEFT JOIN cc_tariffgroup ON tariff=cc_tariffgroup.id WHERE username='8523854719'
Aug 8 18:12:58 VERBOSE[4528] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:1744 - [SET LANGUAGE() es]
Aug 8 18:12:59 VERBOSE[4528] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:635 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse+1 WHERE username='8523854719']
Aug 8 18:12:59 VERBOSE[4528] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:1971 - [A2Billing] SAY BALANCE : 10.00000
Aug 8 18:12:59 VERBOSE[4528] logger.c: a2billing.php|1:
Aug 8 18:12:59 VERBOSE[4528] logger.c: a2billing.php|1: file:Class.A2Billing.php - line:1123 - [CURRENCY : USD]
Aug 8 18:12:59 DEBUG[4528] channel.c: Scheduling timer at 160 sample intervals
Aug 8 18:13:00 DEBUG[4528] channel.c: Scheduling timer at 0 sample intervals
Aug 8 18:13:00 DEBUG[4528] channel.c: Scheduling timer at 0 sample intervals
Aug 8 18:13:00 DEBUG[4528] channel.c: Scheduling timer at 160 sample intervals

No se que estoy haciendo mal, o tal vez algo no tengo bien en el a2billing.conf... recuerda que la llamada se realiza sin problemas, pero no me tarifica.

Muchas gracias ....

additional_a2billing.conf

Buen dia a todos, desearia saber si ya se resolvió el problema que tenia ccanelo, porque me pasa a mi lo mismo cuando trato de crear el scrip additional_a2billing.conf via web con A2billing , he intentado todo, desde reinstalacion, modificar el archivo Form/Class.FormHandler.inc.php e incluso he modificado los permisos.
En este foro dice que son los permisos, pero se que no es eso porque ya he intentado con ellos y sigue sin funcionar. Por lo que sé, ccanelos esta usando CentOS y yo también, será que no funciona para CentOS?

Toda ayuda es bien recibida
Gracias

additional_a2billing_sip.conf funciona con fedora

Buen dia a todos, al parecer el problema lo tiene CentOS o talvez falta algun paso en todo el proceso de instalacion para que funcione con CentOS, pero lo mas interesante es que me funciona con fedora, ya crea y escribe sobre el script additional_a2billing_sip.conf.

Páginas