[AsteriskBrasil] RES: A2billing IAX2

Raphael Rodrigues raphaelrrl em gmail.com
Terça Janeiro 21 22:21:47 BRST 2014


Alexandre,

Obrigado pelo retorno.

Entre 2 elastix eu consigo comunicação via SIP e IAX2, inclusive com
callerid nos relatórios, o problema está entre o elastix e o a2billing em
servers separados, o elastix até funfa de boa junto com o A2b na mesma
instalação, porém por questões relacionadas a desempenho optei por
trabalhar com eles em servers separados, uma solução funcional para um
provedor entrando agora no mercado.

Estou seguindo uma pista enviada pelo Mike, conseguindo resultado enviarei
os resultados.

Aguardo mais ideias...:)

Mas uma vez obrigado.

Abraço

Att


2014/1/21 Alexandre Trevizoli <ale.trevizoli em gmail.com>

> Raphael tive um problema similar entre dois Elastix, mudei o tronco de
> IAX2 para SIP e resolveu...faz o teste.
>
>
>
> *De:* asteriskbrasil-bounces em listas.asteriskbrasil.org [mailto:
> asteriskbrasil-bounces em listas.asteriskbrasil.org] *Em nome de *Raphael
> Rodrigues
> *Enviada em:* terça-feira, 21 de janeiro de 2014 11:17
> *Para:* elastixbrasil em googlegroups.com;
> asteriskbrasil em listas.asteriskbrasil.org; asterisklibre em googlegroups.com
> *Assunto:* [AsteriskBrasil] A2billing IAX2
>
>
>
> Pessoal bom dia,
>
> Primeiramente saudações pingüinianas a todos.
>
> Sei que a lista não é referente ao A2billing, porém estou com um problema
> meio tenso e caso alguém tenha passado por esse abacaxi e puder
> contribuir....:0..
>
> Realizei uma interconexão ( dois servers separados) entre um Elastix/ast*
> e um A2billing/ast* via IAX2, até ai tudo bem, a interconexão foi 100%, do
> A2billing/ast* para o Elastix/ast* as ligações funcionam sem problemas,
> tanto para ramais quanto para ligações externas ( Tem um E1 R2 no
> Elastix/ast*), o problema esta na volta do Elastix/ast* para o
> A2billing/ast*, quando realizo uma ligação do Elastix/ast* A2billing/ast* o
> A2billing/ast* pede um código pin, tento entre ramais quanto ligações
> externas, pelo que entendi o A2billing/ast* não esta encontrando o CALLERID
> do IAX2 ( ????), estou enviando o log de entrada  no A2billing/ast* e
> contexto.
>
> Segue abaixo log do A2b e contexto.
>
>
>
> Obrigado pela atenção pessoal, abraço.
>
>
> -- Accepting AUTHENTICATED call from xxx.xxx.xxx.xxx:
>        > requested format = alaw,
>        > requested prefs = (alaw|ulaw|gsm),
>        > actual format = ulaw,
>        > host prefs = (ulaw|alaw|gsm),
>        > priority = mine
>     -- Executing [7789 em a2billing:1] NoOp("IAX2/202020-433", "A2Billing
> Start") in new stack
>     -- Executing [7789 em a2billing:2] DeadAGI("IAX2/202020-433",
> "a2billing.php,1") in new stack
> [Jan 21 10:48:24] WARNING[23633]: res_agi.c:3329 deadagi_exec: DeadAGI has
> been deprecated, please use AGI in all cases!
>     -- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php
>  a2billing.php,1: file:Class.A2Billing.php - line:598 - uniqueid: -
> A2Billing AGI internal configuration:
>  a2billing.php,1: file:Class.A2Billing.php - line:599 - uniqueid: - Array
>  a2billing.php,1: (
>  a2billing.php,1:     [dialcommand_param_call_2did] =>
> |60|HiL(%timeout%:61000:30000)
>  a2billing.php,1:     [description] => agi-config
>  a2billing.php,1:     [asterisk_version] => 1_6
>  a2billing.php,1:     [answer_call] => 0
>  a2billing.php,1:     [play_audio] => 0
>  a2billing.php,1:     [say_goodbye] => 0
>  a2billing.php,1:     [play_menulanguage] => 0
>  a2billing.php,1:     [force_language] => BR
>  a2billing.php,1:     [intro_prompt] =>
>  a2billing.php,1:     [min_credit_2call] => 0
>  a2billing.php,1:     [min_duration_2bill] => 3
>  a2billing.php,1:     [notenoughcredit_cardnumber] => 0
>  a2billing.php,1:     [notenoughcredit_assign_newcardnumber_cid] => 0
>  a2billing.php,1:     [use_dnid] => 1
>  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] => 0
>  a2billing.php,1:     [say_balance_after_call] => 0
>  a2billing.php,1:     [say_rateinitial] => 0
>  a2billing.php,1:     [say_timetocall] => 0
>  a2billing.php,1:     [auto_setcallerid] => 1
>  a2billing.php,1:     [force_callerid] =>
>  a2billing.php,1:     [cid_sanitize] => 0
>  a2billing.php,1:     [cid_enable] => 1
>  a2billing.php,1:     [cid_askpincode_ifnot_callerid] => 1
>  a2billing.php,1:     [failover_lc_prefix] => 0
>  a2billing.php,1:     [cid_auto_assign_card_to_cid] => 1
>  a2billing.php,1:     [callerid_authentication_over_cardnumber] => 0
>  a2billing.php,1:     [sip_iax_friends] => 1
>  a2billing.php,1:     [sip_iax_pstn_direct_call_prefix] => 555
>  a2billing.php,1:     [sip_iax_pstn_direct_call] => 0
>  a2billing.php,1:     [ivr_voucher] => 0
>  a2billing.php,1:     [ivr_voucher_prefix] => 8
>  a2billing.php,1:     [jump_voucher_if_min_credit] => 0
>  a2billing.php,1:     [dialcommand_param] => |60|
>  a2billing.php,1:     [dialcommand_param_sipiax_friend] =>
> |60|L(%timeout%:61000:30000)
>  a2billing.php,1:     [switchdialcommand] => 0
>  a2billing.php,1:     [failover_recursive_limit] => 2
>  a2billing.php,1:     [maxtime_tocall_negatif_free_route] => 5400
>  a2billing.php,1:     [send_reminder] => 0
>  a2billing.php,1:     [record_call] => 0
>  a2billing.php,1:     [monitor_formatfile] => gsm
>  a2billing.php,1:     [agi_force_currency] =>
>  a2billing.php,1:     [currency_association] => Array
>  a2billing.php,1:         (
>  a2billing.php,1:             [0] => usd:dollars
>  a2billing.php,1:             [1] => mxn:pesos
>  a2billing.php,1:             [2] => eur:euros
>  a2billing.php,1:             [3] => all:credit
>  a2billing.php,1:         )
>  a2billing.php,1:
>  a2billing.php,1:     [local_dialing_addcountryprefix] => 0
>  a2billing.php,1:     [max_call_call_2_did] => 3600
>  a2billing.php,1:     [file_conf_enter_destination] => prepaid-enter-dest
>  a2billing.php,1:     [conf_order_menulang] => br:br:br
>  a2billing.php,1:     [callback_bill_1stleg_ifcall_notconnected] => 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:             [3] => 1
>  a2billing.php,1:         )
>  a2billing.php,1:
>  a2billing.php,1:     [extracharge_did] => Array
>  a2billing.php,1:         (
>  a2billing.php,1:             [0] => 1800
>  a2billing.php,1:             [1] => 1900
>  a2billing.php,1:         )
>  a2billing.php,1:
>  a2billing.php,1:     [extracharge_fee] => Array
>  a2billing.php,1:         (
>  a2billing.php,1:             [0] => 0
>  a2billing.php,1:             [1] => 0
>  a2billing.php,1:         )
>  a2billing.php,1:
>  a2billing.php,1:     [extracharge_buyfee] => Array
>  a2billing.php,1:         (
>  a2billing.php,1:             [0] => 0
>  a2billing.php,1:             [1] => 0
>  a2billing.php,1:         )
>  a2billing.php,1:
>  a2billing.php,1:     [maxtime_tounlimited_calls] => 5400
>  a2billing.php,1:     [maxtime_tofree_calls] => 5400
>  a2billing.php,1:     [callplan_deck_minute_threshold] =>
>  a2billing.php,1:     [disable_announcement_seconds] => 0
>  a2billing.php,1:     [currency_cents_association] => Array
>  a2billing.php,1:         (
>  a2billing.php,1:             [0] => usd:prepaid-cents
>  a2billing.php,1:             [1] => eur:prepaid-cents
>  a2billing.php,1:             [2] => gbp:prepaid-pence
>  a2billing.php,1:             [3] => all:credit
>  a2billing.php,1:         )
>  a2billing.php,1:
>  a2billing.php,1:     [verbosity_level] => 4
>  a2billing.php,1:     [logging_level] => 4
>  a2billing.php,1:     [dial_balance_reservation] => 0.25
>  a2billing.php,1:     [callerid_update] => 0
>  a2billing.php,1:     [cid_auto_create_card] => 0
>  a2billing.php,1:     [cid_auto_create_card_len] => 10
>  a2billing.php,1:     [cid_auto_create_card_typepaid] => PREPAID
>  a2billing.php,1:     [cid_auto_create_card_credit] => 0
>  a2billing.php,1:     [cid_auto_create_card_credit_limit] => 0
>  a2billing.php,1:     [cid_auto_create_card_tariffgroup] => 1
>  a2billing.php,1:     [busy_timeout] => 1
>  a2billing.php,1:     [callback_reduce_balance] => 1
>  a2billing.php,1:     [ivr_enable_locking_option] => 0
>  a2billing.php,1:     [ivr_enable_account_information] => 0
>  a2billing.php,1:     [ivr_enable_ivr_speeddial] => 0
>  a2billing.php,1:     [play_rate_cents_if_lower_one] => 0
>  a2billing.php,1:     [callback_beep_to_enter_destination] => 0
>  a2billing.php,1:     [cid_prompt_callback_confirm_phonenumber] => 0
>  a2billing.php,1:     [lcr_mode] => 0
>  a2billing.php,1:     [logger_enable] => 1
>  a2billing.php,1:     [log_file] => /var/log/a2billing/a2billing.log
>  a2billing.php,1:     [dialcommand_param_call_2did ] =>
> |30|HL(3600000:61000:30000)
>  a2billing.php,1:     [currency_association_internal] => Array
>  a2billing.php,1:         (
>  a2billing.php,1:             [usd] => dollars
>  a2billing.php,1:             [mxn] => pesos
>  a2billing.php,1:             [eur] => euros
>  a2billing.php,1:             [all] => credit
>  a2billing.php,1:         )
>  a2billing.php,1:
>  a2billing.php,1:     [currency_cents_association_internal] => Array
>  a2billing.php,1:         (
>  a2billing.php,1:             [usd] => prepaid-cents
>  a2billing.php,1:             [eur] => prepaid-cents
>  a2billing.php,1:             [gbp] => prepaid-pence
>  a2billing.php,1:             [all] => credit
>  a2billing.php,1:         )
>  a2billing.php,1:
>  a2billing.php,1:     [file_conf_enter_menulang] => prepaid-menulang
>  a2billing.php,1:     [ivr_voucher_prefixe] => 8
>  a2billing.php,1:     [cheat_on_announcement_time] => 0
>  a2billing.php,1: )
>  a2billing.php,1:
>  a2billing.php,1: file:a2billing.php - line:117 - uniqueid: - IDCONFIG : 1
>  a2billing.php,1: file:a2billing.php - line:118 - uniqueid: - MODE :
> standard
>  a2billing.php,1: file:a2billing.php - line:130 - uniqueid: - AGI Request:
>  a2billing.php,1: Array
>  a2billing.php,1: (
>  a2billing.php,1:     [agi_request] => a2billing.php
>  a2billing.php,1:     [agi_channel] => IAX2/202020-433
>  a2billing.php,1:     [agi_language] => br
>  a2billing.php,1:     [agi_type] => IAX2
>  a2billing.php,1:     [agi_uniqueid] => 1390308504.49
>  a2billing.php,1:     [agi_version] => 1.6.2.22
>  a2billing.php,1:     [agi_callerid] => 7760
>  a2billing.php,1:     [agi_calleridname] => CELSO TI-7760
>  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] => unknown
>  a2billing.php,1:     [agi_rdnis] => unknown
>  a2billing.php,1:     [agi_context] => a2billing
>  a2billing.php,1:     [agi_extension] => 7789
>  a2billing.php,1:     [agi_priority] => 2
>  a2billing.php,1:     [agi_enhanced] => 0.0
>  a2billing.php,1:     [agi_accountcode] =>
>  a2billing.php,1:     [agi_threadid] => 139725746394880
>  a2billing.php,1:     [agi_arg_1] => 1
>  a2billing.php,1: )
>  a2billing.php,1:
>  a2billing.php,1: file:a2billing.php - line:131 - uniqueid: - [INFO :
> A2Billing - v2.0.7]
>  a2billing.php,1: file:Class.A2Billing.php - line:712 -
> uniqueid:1390308504.49 -  get_agi_request_parameter = 7760 ;
> IAX2/202020-433 ; 1390308504.49 ;  ; 7789
>  a2billing.php,1: file:a2billing.php - line:169 - uniqueid:1390308504.49 -
> [NO ANSWER CALL]
>  a2billing.php,1: file:Class.A2Billing.php - line:677 -
> uniqueid:1390308504.49 - FORCE LANGUAGE : BR
>  a2billing.php,1: file:Class.A2Billing.php - line:687 -
> uniqueid:1390308504.49 - [SET CHANNEL(language) br]
>  a2billing.php,1: file:Class.A2Billing.php - line:2635 -
> uniqueid:1390308504.49 - [CID_ENABLE - CID_CONTROL - CID:7760]
>  a2billing.php,1: file:Class.A2Billing.php - line:2650 -
> uniqueid:1390308504.49 -
>  a2billing.php,1: file:Class.A2Billing.php - line:2654 -
> uniqueid:1390308504.49 - [CID_CONTROL - NO CALLERID]
>  a2billing.php,1: file:Class.A2Billing.php - line:2721 -
> uniqueid:1390308504.49 - [CID_CONTROL - NO CALLERID - ASK PIN CODE]
>  a2billing.php,1: file:Class.A2Billing.php - line:2862 -
> uniqueid:1390308504.49 -  - Account code ::>
>  a2billing.php,1: file:Class.A2Billing.php - line:3044 -
> uniqueid:1390308504.49 - Requesting DTMF, CARDNUMBER_LENGTH_MAX 20
>     -- <IAX2/202020-433> Playing 'prepaid-enter-pin-number.gsm' (language
> 'br')
>  a2billing.php,1: file:Class.A2Billing.php - line:3046 -
> uniqueid:1390308504.49 - RES DTMF :
>  a2billing.php,1: file:Class.A2Billing.php - line:3050 -
> uniqueid:1390308504.49 - CARDNUMBER ::>
>  a2billing.php,1: file:Class.A2Billing.php - line:3054 -
> uniqueid:1390308504.49 - PREPAID-NO-CARD-ENTERED
>  a2billing.php,1: file:Class.A2Billing.php - line:3036 -
> uniqueid:1390308504.49 - Streamfile : PREPAID-NO-CARD-ENTERED
>  a2billing.php,1: file:Class.A2Billing.php - line:3044 -
> uniqueid:1390308504.49 - Requesting DTMF, CARDNUMBER_LENGTH_MAX 20
>     -- <IAX2/202020-433> Playing 'prepaid-enter-pin-number.gsm' (language
> 'br')
>  a2billing.php,1: file:Class.A2Billing.php - line:3046 -
> uniqueid:1390308504.49 - RES DTMF : -1
>  a2billing.php,1: file:Class.A2Billing.php - line:3050 -
> uniqueid:1390308504.49 - CARDNUMBER ::> -1
>  a2billing.php,1: file:Class.A2Billing.php - line:3060 -
> uniqueid:1390308504.49 - PREPAID-INVALID-DIGITS
>  a2billing.php,1: file:Class.A2Billing.php - line:3036 -
> uniqueid:1390308504.49 - Streamfile : PREPAID-INVALID-DIGITS
>  a2billing.php,1: file:Class.A2Billing.php - line:3044 -
> uniqueid:1390308504.49 - Requesting DTMF, CARDNUMBER_LENGTH_MAX 20
>  a2billing.php,1: file:Class.A2Billing.php - line:3046 -
> uniqueid:1390308504.49 - RES DTMF :
>  a2billing.php,1: file:Class.A2Billing.php - line:3050 -
> uniqueid:1390308504.49 - CARDNUMBER ::>
>  a2billing.php,1: file:Class.A2Billing.php - line:3054 -
> uniqueid:1390308504.49 - PREPAID-NO-CARD-ENTERED
>  a2billing.php,1: file:a2billing.php - line:181 - uniqueid:1390308504.49 -
> [TRY : callingcard_ivr_authenticate]
>  a2billing.php,1: file:a2billing.php - line:613 - uniqueid:1390308504.49 -
> [NO AUTH (CN:, cia_res:-1, CREDIT:)]
>     -- <IAX2/202020-433>AGI Script a2billing.php completed, returning 4
>   == Spawn extension (a2billing, 7789, 2) exited non-zero on
> 'IAX2/202020-433'
>     -- Hungup 'IAX2/202020-433'
>
>
>
> Extencions.conf
>
>
> [root em c3po rrl]# cat /etc/asterisk/extensions.conf
> [general]
> static=yes
> writeprotect=no
> autofallthrough=yes
> clearglobalvars=yes
>
> [a2billing]
>
>
>
> exten => s-NOANSWER,1,Hangup
> exten => s-CONGESTION,1,Goto(s-CHANUNAVAIL,1)
> exten => s-CANCEL,1,Hangup
> exten => s-BUSY,1,Busy
> exten => s-CHANUNAVAIL,1,Playtones(busy)
> exten => s-CHANUNAVAIL,n,Busy(10)
> exten => s-CHANUNAVAIL,n,Hangup()
>
>
> exten => _X.,1,NoOp(A2Billing Start)
> exten => _X.,n,DeadAgi(a2billing.php,1)
> exten => _X.,1,Hangup()
>
> ;exten => _X.,1,AGI(a2billing.php,1)
> ;exten => _X.,n,Hangup
>
> exten => h,n,Hangup
>
>
> --
>
> --
> Raphael Rodrigues
> Analista de Redes - Pd's Informática ltda
> Linux user number 510457
> LPI000275344
> CISCO ID: CSCO12223327
> http://www.softwarelivre-campos.org/
> http://www.pdsnet.com.br/
>
> "Felizes aqueles cujo conhecimento é livre de ilusões e superstições",
> Sidarta Gautama.
>
> _______________________________________________
> KHOMP: completa linha de placas externas FXO, FXS, GSM e E1
> Media Gateways de 1 a 64 E1s para SIP com R2, ISDN e SS7
> Intercomunicadores para acesso remoto via rede IP e telefones IP
> Conheça todo o portfólio em www.Khomp.com
> _______________________________________________
> Para remover seu email desta lista, basta enviar um email em branco para
> asteriskbrasil-unsubscribe em listas.asteriskbrasil.org
>



-- 
-- 
Raphael Rodrigues
Analista de Redes - Pd's Informática ltda
Linux user number 510457
LPI000275344
CISCO ID: CSCO12223327
http://www.softwarelivre-campos.org/
http://www.pdsnet.com.br/

"Felizes aqueles cujo conhecimento é livre de ilusões e superstições",
Sidarta Gautama.
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://listas.asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20140121/678dd5a5/attachment-0001.htm 


Mais detalhes sobre a lista de discussão AsteriskBrasil