a2billing no me deja llamar con prefijo

Imagen de rickygm

Forums: 

hola foro , estoy tratando de tarificar todas mi llamadas que salen a la PSTN con el prefijo 9. Configuro un trunk , rate, customer , tariff group y marco con el prefijo 9+numero de teléfono el a2billing me dice que digite el código billing lo dígito y me sale el balance en dolares hasta aquí todo ok , pero al final dice que el numero marcado no esta disponible , he revisado una y otra ves el trunk , call plan , rate y vuelvo a caer en los mismo .. , les muestro los log para ver que se me puede escapar:

la salida del trunk la hice con ZAP , ya que salgo por un zap!

a2billing.php: file:Class.A2Billing.php - line:1889 - [SET LANGUAGE() es]
a2billing.php: file:Class.A2Billing.php - line:654 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse+1 WHERE username='2229478050']
a2billing.php: file:Class.A2Billing.php - line:1969 - [A2Billing] SAY BALANCE : 10.00000
a2billing.php:
a2billing.php: file:Class.A2Billing.php - line:1148 - [CURRENCY : USD]
-- Playing 'prepaid-you-have' (escape_digits=#) (sample_offset 0)
-- Playing 'digits/10' (language 'es')
-- Playing 'dollars' (escape_digits=#) (sample_offset 0)
a2billing.php: file:Class.A2Billing.php - line:1400 - [AUTO SetCallerID]
a2billing.php: file:a2billing.php - line:172 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php: file:a2billing.php - line:173 - [CREDIT : 10.00000][CREDIT MIN_CREDIT_2CALL : 0]
a2billing.php: file:Class.A2Billing.php - line:676 - 1 && && 8&& 0
a2billing.php: file:Class.A2Billing.php - line:701 - DESTINATION ::> 92642006
a2billing.php: file:Class.A2Billing.php - line:703 - RULES APPLY ON DESTINATION ::> 92642006
a2billing.php: file:Class.A2Billing.php - line:741 - OK - RESFINDRATE::> 1
a2billing.php: file:Class.A2Billing.php - line:763 - RES_ALL_CALCULTIMEOUT ::> 1
a2billing.php: file:Class.A2Billing.php - line:780 - TIMEOUT::> 19980 : minutes=333 - seconds=0
-- Playing 'prepaid-you-have' (escape_digits=#) (sample_offset 0)
-- Playing 'digits/300' (language 'es')
-- Playing 'digits/30' (language 'es')
-- Playing 'digits/and' (language 'es')
-- Playing 'digits/3' (language 'es')
-- Playing 'prepaid-minutes' (escape_digits=#) (sample_offset 0)
a2billing.php: file:Class.RateEngine.php - line:1012 - app_callingcard: Dialing 'ZAP/telefonia_Enitel/92642006|60|HRgrL(19980000:61000:30000)' with timeout of '19980'.
a2billing.php:
a2billing.php: file:Class.RateEngine.php - line:1037 - app_callingcard: CIDGROUPID='-1' OUTBOUND CID SELECTED IS '0'.
-- AGI Script Executing Application: (Dial) Options: (ZAP/telefonia_Enitel/92642006|60|HRgrL(19980000:61000:30000))
-- Limit Data for this call:
> timelimit = 19980000
> play_warning = 61000
> play_to_caller = yes
> play_to_callee = no
> warning_freq = 30000
> start_sound = (null)
> warning_sound = timeleft
> end_sound = (null)
[Dec 30 12:22:48] WARNING[4313]: chan_zap.c:7884 zt_request: Unable to determine channel for data telefonia_Enitel/92642006
[Dec 30 12:22:48] WARNING[4313]: app_dial.c:1183 dial_exec_full: Unable to create channel of type 'ZAP' (cause 0 - Unknown)
== Everyone is busy/congested at this time (1:0/0/1)
a2billing.php: file:Class.RateEngine.php - line:1148 - [USEDRATECARD - FAIL =0]
-- Playing 'prepaid-dest-unreachable' (escape_digits=#) (sample_offset 0)
== Spawn extension (in-net, s, 1) exited non-zero on 'Zap/4-1'
-- Hungup 'Zap/4-1'
a2billing.php: file:Class.RateEngine.php - line:899 - [CC_asterisk_stop QUERY = INSERT INTO cc_call (uniqueid,sessionid,username,nasipaddress,starttime,sessiontime, calledstation, terminatecause, stoptime, calledrate, sessionbill, calledcountry, calledsub, destination, id_tariffgroup, id_tariffplan, id_ratecard, id_trunk, src, sipiax, buyrate, buycost, id_card_package_offer) VALUES ('1230661344.122', 'SIP/119-095ae740', '2229478050', '', CURRENT_TIMESTAMP - INTERVAL 0 SECOND , '0', '92642006', 'CHANUNAVAIL', now(), '0.03', '-0', '', '', 'nicaragua', '5', '4', '4', '5', '119', '0', '0.023', '0', '0')]
a2billing.php: file:Class.RateEngine.php - line:902 - [CC_asterisk_stop 1.1: SQL: DONE : result=1]
a2billing.php: file:Class.A2Billing.php - line:1148 - [CURRENCY : USD]
-- Playing 'prepaid-you-have' (escape_digits=#) (sample_offset 0)
-- Playing 'digits/10' (language 'es')
-- Playing 'dollars' (escape_digits=#) (sample_offset 0)
a2billing.php: file:a2billing.php - line:312 - [a2billing account stop]
a2billing.php: file:a2billing.php - line:172 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php: file:a2billing.php - line:173 - [CREDIT : 10.00000][CREDIT MIN_CREDIT_2CALL : 0]
a2billing.php: file:Class.A2Billing.php - line:676 - 0 && && 8&& 1
-- Playing 'prepaid-enter-dest' (language 'es'

saludoss

lo agrego

Imagen de rickygm

hola gracias por tu ayuda , ya agregue el prefijo en el trunk pero todavia no logro salir a la pstn , si yo quito el agi del plan de llamada salgo muy bien a la pstn ..

lo que veo raro es un warning el cual me indica el canal ZAP

31 12:49:07] WARNING[32716]: func_language.c:61 language_write: LANGUAGE() is deprecated; use CHANNEL(language) instead.
a2billing.php: file:Class.A2Billing.php - line:1889 - [SET LANGUAGE() es]
a2billing.php: file:Class.A2Billing.php - line:654 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse+1 WHERE username='2229478050']
a2billing.php: file:Class.A2Billing.php - line:1969 - [A2Billing] SAY BALANCE : 10.00000
a2billing.php:
a2billing.php: file:Class.A2Billing.php - line:1148 - [CURRENCY : USD]
-- Playing 'prepaid-you-have' (escape_digits=#) (sample_offset 0)
-- Playing 'digits/10' (language 'es')
-- Playing 'dollars' (escape_digits=#) (sample_offset 0)
a2billing.php: file:Class.A2Billing.php - line:1400 - [AUTO SetCallerID]
a2billing.php: file:a2billing.php - line:172 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php: file:a2billing.php - line:173 - [CREDIT : 10.00000][CREDIT MIN_CREDIT_2CALL : 0]
a2billing.php: file:Class.A2Billing.php - line:676 - 1 && && 8&& 0
a2billing.php: file:Class.A2Billing.php - line:701 - DESTINATION ::> 92642006
a2billing.php: file:Class.A2Billing.php - line:703 - RULES APPLY ON DESTINATION ::> 92642006
a2billing.php: file:Class.A2Billing.php - line:741 - OK - RESFINDRATE::> 1
a2billing.php: file:Class.A2Billing.php - line:763 - RES_ALL_CALCULTIMEOUT ::> 1
a2billing.php: file:Class.A2Billing.php - line:780 - TIMEOUT::> 19980 : minutes=333 - seconds=0
-- Playing 'prepaid-you-have' (escape_digits=#) (sample_offset 0)
-- Playing 'digits/300' (language 'es')
-- Playing 'digits/30' (language 'es')
-- Playing 'digits/and' (language 'es')
-- Playing 'digits/3' (language 'es')
-- Playing 'prepaid-minutes' (escape_digits=#) (sample_offset 0)
a2billing.php: file:Class.RateEngine.php - line:1012 - app_callingcard: Dialing 'ZAP/telefonia_Enitel/992642006|60|HRgrL(19980000:61000:30000)' with timeout of '19980'.
a2billing.php:
a2billing.php: file:Class.RateEngine.php - line:1037 - app_callingcard: CIDGROUPID='-1' OUTBOUND CID SELECTED IS '0'.
-- AGI Script Executing Application: (Dial) Options: (ZAP/telefonia_Enitel/992642006|60|HRgrL(19980000:61000:30000))
-- Limit Data for this call:
> timelimit = 19980000
> play_warning = 61000
> play_to_caller = yes
> play_to_callee = no
> warning_freq = 30000
> start_sound = (null)
> warning_sound = timeleft
> end_sound = (null)
[Dec 31 12:49:14] WARNING[32716]: chan_zap.c:7884 zt_request: Unable to determine channel for data telefonia_Enitel/992642006
[Dec 31 12:49:14] WARNING[32716]: app_dial.c:1183 dial_exec_full: Unable to create channel of type 'ZAP' (cause 0 - Unknown)

== Everyone is busy/congested at this time (1:0/0/1)
a2billing.php: file:Class.RateEngine.php - line:1148 - [USEDRATECARD - FAIL =0]
-- Playing 'prepaid-dest-unreachable' (escape_digits=#) (sample_offset 0)
a2billing.php: file:Class.RateEngine.php - line:899 - [CC_asterisk_stop QUERY = INSERT INTO cc_call (uniqueid,sessionid,username,nasipaddress,starttime,sessiontime, calledstation, terminatecause, stoptime, calledrate, sessionbill, calledcountry, calledsub, destination, id_tariffgroup, id_tariffplan, id_ratecard, id_trunk, src, sipiax, buyrate, buycost, id_card_package_offer) VALUES ('1230749331.92', 'SIP/119-08369ec0', '2229478050', '', CURRENT_TIMESTAMP - INTERVAL 0 SECOND , '0', '92642006', 'CHANUNAVAIL', now(), '0.03', '-0', '', '', 'nicaragua', '5', '4', '4', '5', '119', '0', '0.023', '0', '0')]
a2billing.php: file:Class.RateEngine.php - line:902 - [CC_asterisk_stop 1.1: SQL: DONE : result=1]
a2billing.php: file:Class.A2Billing.php - line:1148 - [CURRENCY : USD]
-- Playing 'prepaid-you-have' (escape_digits=#) (sample_offset 0)
-- Playing 'digits/10' (language 'es')
-- Playing 'dollars' (escape_digits=#) (sample_offset 0)
a2billing.php: file:a2billing.php - line:312 - [a2billing account stop]
a2billing.php: file:a2billing.php - line:172 - [CHANNEL STATUS : 6 = Line is up]
a2billing.php: file:a2billing.php - line:173 - [CREDIT : 10.00000][CREDIT MIN_CREDIT_2CALL : 0]
a2billing.php: file:Class.A2Billing.php - line:676 - 0 && && 8&& 1
-- Playing 'prepaid-enter-dest' (language 'es')
a2billing.php: file:Class.A2Billing.php - line:683 - RES DTMF : 2642006
a2billing.php: file:Class.A2Billing.php - line:701 - DESTINATION ::> 2642006
a2billing.php: file:Class.A2Billing.php - line:703 - RULES APPLY ON DESTINATION ::> 2642006
a2billing.php: file:Class.A2Billing.php - line:739 - ERROR ::> RateEngine didnt succeed to match the dialed number over the ratecard (Please check : id the ratecard is well create ; if the removeInter_Prefix is set according to your prefix in the ratecard ; if you hooked the ratecard to the Call Plan)
-- Playing 'prepaid-dest-unreachable' (escape_digits=#) (sample_offset 0)
a2billing.php: file:Class.A2Billing.php - line:654 - [CARD STATUS UPDATE : UPDATE cc_card SET inuse=inuse-1 WHERE username='2229478050']
-- AGI Script a2billing.php completed, returning 0
== End MixMonitor Recording SIP/119-08369ec0
[Dec 31 12:49:33] NOTICE[9965]: chan_iax2.c:6206 update_registry: Restricting registration for peer '115' to 60 seconds (requested 300)
xserver*CLI> [Dec 31 12:49:14] WARNING[32716]: chan_zap.c:7884 zt_request: Unable to determine channel for data telefonia_Enitel/992642006
xserver*CLI> [Dec 31 12:49:14] WARNING[32716]: app_dial.c:1183 dial_exec_full: Unable to create channel of type 'ZAP' (cause 0 - Unknown)
xserver*CLI> == Everyone is busy/congested at this time (1:0/0/1)
No such command '[Dec 31 12:49:14] WARNING[32716]: chan_zap.c:7884 zt_request: Unable to determine channel for data telefonia_Enitel/992642006' (type 'help [Dec 31' for other possible commands)
No such command '[Dec 31 12:49:14] WARNING[32716]: app_dial.c:1183 dial_exec_full: Unable to create channel of type 'ZAP' (cause 0 - Unknown)' (type 'help [Dec 31' for other possible commands)
No such command ' =

Fijate en esta parte:

Fijate en esta parte: (ZAP/telefonia_Enitel/992642006|60|HRgrL(19980000:61000:30000))
estas enviando '99' en vez de solo el '9', entonces tienes que quitarle el ADD_PREFIX en la troncal del A2Billing.

Otro:
ERROR ::> RateEngine didnt succeed to match the dialed number over the ratecard (Please check : id the ratecard is well create ; if the removeInter_Prefix is set according to your prefix in the ratecard ; if you hooked the ratecard to the Call Plan)

verifica el CallPlan en A2Billing, esto es importante, sino no se van a tarifar las llamadas y sobre todo, no van a salir a la PSTN.

Saludos cordiales,
Christancho

PANEL DE CONTROL DE USUARIO FACTURACION

Bunas tardes tengo instalado elastix todo perfecto pero tengo una duda con respecto al panel de facturacion por uusario yo quiero vender minutos y qu ecada user pueda entrar a la central ver su consumo y saldo eso lo manejo con el billing ???

Acostúmbrate a escribir una

Imagen de RazaMetaL

Acostúmbrate a escribir una consulta nueva en un nuevo tema en el foro. Al mezclar tópicos causas confusión. Y como adelanto, si quieres vender minutos requieres de un sistema de tarificación, a2billing [1] va muy bien para eso.

[1] [url]http://www.asterisk2billing.org[/url]

-----

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

nada..

Imagen de rickygm

he revisado una y otra vez el plan de llamada y no encuentro donde siempre me presenta ese error, que dices posteo el rate plan?

saludoss

Tus tarifas deben comenzar

Imagen de RazaMetaL

Tus tarifas deben comenzar con el prefijo 9. En la configuracion del trunk en a2billing debes quitar el agregar prefijo 9 para que marques 9numero y no 99numero que es lo que estas haciendo ahora.

-----

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

Has probado el asterisk solo,

Has probado el asterisk solo, sin configurarlo con A2Billing, solo para verificar que el ZAP este funcionando...

[Dec 31 12:49:14] WARNING[32716]: chan_zap.c:7884 zt_request: Unable to determine channel for data telefonia_Enitel/992642006
[Dec 31 12:49:14] WARNING[32716]: app_dial.c:1183 dial_exec_full: Unable to create channel of type 'ZAP' (cause 0 - Unknown)

explico

Imagen de rickygm

ok , muestro el contexto del a2billing , si quito el agi del contexto salgo muy bien.. a la PSTN:

[a2billing]
exten => _9.,1,Set(CALLERID(name)=${DB(cidname/${CALLERID(num)})})
exten => _9.,n,set(calltime=${STRFTIME(${EPOCH},,%C%y%m%d%H%M%S)})
exten => _9.,n,DeadAGI,a2billing.php
exten => _9.,n,Wait,7
exten => _9.,n,MixMonitor(/var/www/html/outgoing/X${calltime}X${CALLERID(num)}X${EXTEN:3}X.wav)
exten => _9.,n,Dial(Zap/g0/${EXTEN:1},68,tR)
exten => _9.,n,Hangup

ahora dentro del ratecard si doy click en Browse rates en la opción DIALPREFIX tengo puesto un 9 que es donde saco las llamadas a la pstn

dentro del a2billing.conf tengo en la sección del agi :

sip_iax_friends = NO
sip_iax_pstn_direct_call_prefix = 9
sip_iax_pstn_direct_call = YES

posteo algunas imágenes del a2billing

http://gnuforever.homelinux.com/images/

saludos y gracias ..

exten =>

Imagen de RazaMetaL


exten => _9.,n,Dial(Zap/g0/${EXTEN:1},68,tR)

Veo que tienes definido en zapata.conf el grupo g0. Tu error esta en que en PROVIDER IP del trunk Telefonia_Enitel debe ser g0 y no Telefonia_Enitel como lo tienes en estos momentos. Cambia el parámetro PROVIDER IP del trunk y verás como _casi_ se arregla todo.

Y dico _casi_ por:

sip_iax_pstn_direct_call_prefix = 9

Cambia el prefijo de las llamadas entre usuarios a uno diferente, por ejemplo 555.

Prueba lo que te recomiendo y no olvides avisarnos si funciona.

-----

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

Páginas