<div dir="ltr"><div><div><div><div><div>Alexandre,<br><br></div>Obrigado pelo retorno.<br><br></div>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.<br>
<br></div>Estou seguindo uma pista enviada pelo Mike, conseguindo resultado enviarei os resultados.<br><br></div><div>Aguardo mais ideias...:)<br><br></div>Mas uma vez obrigado.<br><br></div><div>Abraço<br></div><div><br>
</div>Att<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014/1/21 Alexandre Trevizoli <span dir="ltr"><<a href="mailto:ale.trevizoli@gmail.com" target="_blank">ale.trevizoli@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div link="blue" vlink="purple" lang="PT-BR"><div><p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Raphael tive um problema similar entre dois Elastix, mudei o tronco de IAX2 para SIP e resolveu...faz o teste. <u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">De:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:asteriskbrasil-bounces@listas.asteriskbrasil.org" target="_blank">asteriskbrasil-bounces@listas.asteriskbrasil.org</a> [mailto:<a href="mailto:asteriskbrasil-bounces@listas.asteriskbrasil.org" target="_blank">asteriskbrasil-bounces@listas.asteriskbrasil.org</a>] <b>Em nome de </b>Raphael Rodrigues<br>
<b>Enviada em:</b> terça-feira, 21 de janeiro de 2014 11:17<br><b>Para:</b> <a href="mailto:elastixbrasil@googlegroups.com" target="_blank">elastixbrasil@googlegroups.com</a>; <a href="mailto:asteriskbrasil@listas.asteriskbrasil.org" target="_blank">asteriskbrasil@listas.asteriskbrasil.org</a>; <a href="mailto:asterisklibre@googlegroups.com" target="_blank">asterisklibre@googlegroups.com</a><br>
<b>Assunto:</b> [AsteriskBrasil] A2billing IAX2<u></u><u></u></span></p></div><div><div class="h5"><p class="MsoNormal"><u></u> <u></u></p><div><div><div><div><div><p class="MsoNormal" style="margin-bottom:12.0pt">Pessoal bom dia,<br>
<br><u></u><u></u></p></div><p class="MsoNormal" style="margin-bottom:12.0pt">Primeiramente saudações pingüinianas a todos.<u></u><u></u></p></div><p class="MsoNormal" style="margin-bottom:12.0pt">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..<u></u><u></u></p>
</div><p class="MsoNormal" style="margin-bottom:12.0pt">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.<u></u><u></u></p>
</div><div><p class="MsoNormal">Segue abaixo log do A2b e contexto.<u></u><u></u></p></div><div><p class="MsoNormal"><u></u> <u></u></p></div><p class="MsoNormal">Obrigado pela atenção pessoal, abraço.<br><br><br>-- Accepting AUTHENTICATED call from xxx.xxx.xxx.xxx:<br>
> requested format = alaw,<br> > requested prefs = (alaw|ulaw|gsm),<br> > actual format = ulaw,<br> > host prefs = (ulaw|alaw|gsm),<br> > priority = mine<br> -- Executing [7789@a2billing:1] NoOp("IAX2/202020-433", "A2Billing Start") in new stack<br>
-- Executing [7789@a2billing:2] DeadAGI("IAX2/202020-433", "a2billing.php,1") in new stack<br>[Jan 21 10:48:24] WARNING[23633]: res_agi.c:3329 deadagi_exec: DeadAGI has been deprecated, please use AGI in all cases!<br>
-- Launched AGI Script /var/lib/asterisk/agi-bin/a2billing.php<br> a2billing.php,1: file:Class.A2Billing.php - line:598 - uniqueid: - A2Billing AGI internal configuration:<br> a2billing.php,1: file:Class.A2Billing.php - line:599 - uniqueid: - Array<br>
a2billing.php,1: (<br> a2billing.php,1: [dialcommand_param_call_2did] => |60|HiL(%timeout%:61000:30000)<br> a2billing.php,1: [description] => agi-config<br> a2billing.php,1: [asterisk_version] => 1_6<br>
a2billing.php,1: [answer_call] => 0<br> a2billing.php,1: [play_audio] => 0<br> a2billing.php,1: [say_goodbye] => 0<br> a2billing.php,1: [play_menulanguage] => 0<br> a2billing.php,1: [force_language] => BR<br>
a2billing.php,1: [intro_prompt] =><br> a2billing.php,1: [min_credit_2call] => 0<br> a2billing.php,1: [min_duration_2bill] => 3<br> a2billing.php,1: [notenoughcredit_cardnumber] => 0<br> a2billing.php,1: [notenoughcredit_assign_newcardnumber_cid] => 0<br>
a2billing.php,1: [use_dnid] => 1<br> a2billing.php,1: [no_auth_dnid] => Array<br> a2billing.php,1: (<br> a2billing.php,1: [0] => 2400<br> a2billing.php,1: [1] => 2300<br>
a2billing.php,1: )<br> a2billing.php,1:<br> a2billing.php,1: [number_try] => 1<br> a2billing.php,1: [force_callplan_id] =><br> a2billing.php,1: [say_balance_after_auth] => 0<br> a2billing.php,1: [say_balance_after_call] => 0<br>
a2billing.php,1: [say_rateinitial] => 0<br> a2billing.php,1: [say_timetocall] => 0<br> a2billing.php,1: [auto_setcallerid] => 1<br> a2billing.php,1: [force_callerid] =><br> a2billing.php,1: [cid_sanitize] => 0<br>
a2billing.php,1: [cid_enable] => 1<br> a2billing.php,1: [cid_askpincode_ifnot_callerid] => 1<br> a2billing.php,1: [failover_lc_prefix] => 0<br> a2billing.php,1: [cid_auto_assign_card_to_cid] => 1<br>
a2billing.php,1: [callerid_authentication_over_cardnumber] => 0<br> a2billing.php,1: [sip_iax_friends] => 1<br> a2billing.php,1: [sip_iax_pstn_direct_call_prefix] => 555<br> a2billing.php,1: [sip_iax_pstn_direct_call] => 0<br>
a2billing.php,1: [ivr_voucher] => 0<br> a2billing.php,1: [ivr_voucher_prefix] => 8<br> a2billing.php,1: [jump_voucher_if_min_credit] => 0<br> a2billing.php,1: [dialcommand_param] => |60|<br> a2billing.php,1: [dialcommand_param_sipiax_friend] => |60|L(%timeout%:61000:30000)<br>
a2billing.php,1: [switchdialcommand] => 0<br> a2billing.php,1: [failover_recursive_limit] => 2<br> a2billing.php,1: [maxtime_tocall_negatif_free_route] => 5400<br> a2billing.php,1: [send_reminder] => 0<br>
a2billing.php,1: [record_call] => 0<br> a2billing.php,1: [monitor_formatfile] => gsm<br> a2billing.php,1: [agi_force_currency] =><br> a2billing.php,1: [currency_association] => Array<br> a2billing.php,1: (<br>
a2billing.php,1: [0] => usd:dollars<br> a2billing.php,1: [1] => mxn:pesos<br> a2billing.php,1: [2] => eur:euros<br> a2billing.php,1: [3] => all:credit<br> a2billing.php,1: )<br>
a2billing.php,1:<br> a2billing.php,1: [local_dialing_addcountryprefix] => 0<br> a2billing.php,1: [max_call_call_2_did] => 3600<br> a2billing.php,1: [file_conf_enter_destination] => prepaid-enter-dest<br>
a2billing.php,1: [conf_order_menulang] => br:br:br<br> a2billing.php,1: [callback_bill_1stleg_ifcall_notconnected] => 1<br> a2billing.php,1: [international_prefixes] => Array<br> a2billing.php,1: (<br>
a2billing.php,1: [0] => 011<br> a2billing.php,1: [1] => 00<br> a2billing.php,1: [2] => 09<br> a2billing.php,1: [3] => 1<br> a2billing.php,1: )<br> a2billing.php,1:<br>
a2billing.php,1: [extracharge_did] => Array<br> a2billing.php,1: (<br> a2billing.php,1: [0] => 1800<br> a2billing.php,1: [1] => 1900<br> a2billing.php,1: )<br> a2billing.php,1:<br>
a2billing.php,1: [extracharge_fee] => Array<br> a2billing.php,1: (<br> a2billing.php,1: [0] => 0<br> a2billing.php,1: [1] => 0<br> a2billing.php,1: )<br> a2billing.php,1:<br>
a2billing.php,1: [extracharge_buyfee] => Array<br> a2billing.php,1: (<br> a2billing.php,1: [0] => 0<br> a2billing.php,1: [1] => 0<br> a2billing.php,1: )<br> a2billing.php,1:<br>
a2billing.php,1: [maxtime_tounlimited_calls] => 5400<br> a2billing.php,1: [maxtime_tofree_calls] => 5400<br> a2billing.php,1: [callplan_deck_minute_threshold] =><br> a2billing.php,1: [disable_announcement_seconds] => 0<br>
a2billing.php,1: [currency_cents_association] => Array<br> a2billing.php,1: (<br> a2billing.php,1: [0] => usd:prepaid-cents<br> a2billing.php,1: [1] => eur:prepaid-cents<br> a2billing.php,1: [2] => gbp:prepaid-pence<br>
a2billing.php,1: [3] => all:credit<br> a2billing.php,1: )<br> a2billing.php,1:<br> a2billing.php,1: [verbosity_level] => 4<br> a2billing.php,1: [logging_level] => 4<br> a2billing.php,1: [dial_balance_reservation] => 0.25<br>
a2billing.php,1: [callerid_update] => 0<br> a2billing.php,1: [cid_auto_create_card] => 0<br> a2billing.php,1: [cid_auto_create_card_len] => 10<br> a2billing.php,1: [cid_auto_create_card_typepaid] => PREPAID<br>
a2billing.php,1: [cid_auto_create_card_credit] => 0<br> a2billing.php,1: [cid_auto_create_card_credit_limit] => 0<br> a2billing.php,1: [cid_auto_create_card_tariffgroup] => 1<br> a2billing.php,1: [busy_timeout] => 1<br>
a2billing.php,1: [callback_reduce_balance] => 1<br> a2billing.php,1: [ivr_enable_locking_option] => 0<br> a2billing.php,1: [ivr_enable_account_information] => 0<br> a2billing.php,1: [ivr_enable_ivr_speeddial] => 0<br>
a2billing.php,1: [play_rate_cents_if_lower_one] => 0<br> a2billing.php,1: [callback_beep_to_enter_destination] => 0<br> a2billing.php,1: [cid_prompt_callback_confirm_phonenumber] => 0<br> a2billing.php,1: [lcr_mode] => 0<br>
a2billing.php,1: [logger_enable] => 1<br> a2billing.php,1: [log_file] => /var/log/a2billing/a2billing.log<br> a2billing.php,1: [dialcommand_param_call_2did ] => |30|HL(3600000:61000:30000)<br> a2billing.php,1: [currency_association_internal] => Array<br>
a2billing.php,1: (<br> a2billing.php,1: [usd] => dollars<br> a2billing.php,1: [mxn] => pesos<br> a2billing.php,1: [eur] => euros<br> a2billing.php,1: [all] => credit<br>
a2billing.php,1: )<br> a2billing.php,1:<br> a2billing.php,1: [currency_cents_association_internal] => Array<br> a2billing.php,1: (<br> a2billing.php,1: [usd] => prepaid-cents<br> a2billing.php,1: [eur] => prepaid-cents<br>
a2billing.php,1: [gbp] => prepaid-pence<br> a2billing.php,1: [all] => credit<br> a2billing.php,1: )<br> a2billing.php,1:<br> a2billing.php,1: [file_conf_enter_menulang] => prepaid-menulang<br>
a2billing.php,1: [ivr_voucher_prefixe] => 8<br> a2billing.php,1: [cheat_on_announcement_time] => 0<br> a2billing.php,1: )<br> a2billing.php,1:<br> a2billing.php,1: file:a2billing.php - line:117 - uniqueid: - IDCONFIG : 1<br>
a2billing.php,1: file:a2billing.php - line:118 - uniqueid: - MODE : standard<br> a2billing.php,1: file:a2billing.php - line:130 - uniqueid: - AGI Request:<br> a2billing.php,1: Array<br> a2billing.php,1: (<br> a2billing.php,1: [agi_request] => a2billing.php<br>
a2billing.php,1: [agi_channel] => IAX2/202020-433<br> a2billing.php,1: [agi_language] => br<br> a2billing.php,1: [agi_type] => IAX2<br> a2billing.php,1: [agi_uniqueid] => 1390308504.49<br> a2billing.php,1: [agi_version] => 1.6.2.22<br>
a2billing.php,1: [agi_callerid] => 7760<br> a2billing.php,1: [agi_calleridname] => CELSO TI-7760<br> a2billing.php,1: [agi_callingpres] => 0<br> a2billing.php,1: [agi_callingani2] => 0<br> a2billing.php,1: [agi_callington] => 0<br>
a2billing.php,1: [agi_callingtns] => 0<br> a2billing.php,1: [agi_dnid] => unknown<br> a2billing.php,1: [agi_rdnis] => unknown<br> a2billing.php,1: [agi_context] => a2billing<br> a2billing.php,1: [agi_extension] => 7789<br>
a2billing.php,1: [agi_priority] => 2<br> a2billing.php,1: [agi_enhanced] => 0.0<br> a2billing.php,1: [agi_accountcode] =><br> a2billing.php,1: [agi_threadid] => 139725746394880<br> a2billing.php,1: [agi_arg_1] => 1<br>
a2billing.php,1: )<br> a2billing.php,1:<br> a2billing.php,1: file:a2billing.php - line:131 - uniqueid: - [INFO : A2Billing - v2.0.7]<br> a2billing.php,1: file:Class.A2Billing.php - line:712 - uniqueid:1390308504.49 - get_agi_request_parameter = 7760 ; IAX2/202020-433 ; 1390308504.49 ; ; 7789<br>
a2billing.php,1: file:a2billing.php - line:169 - uniqueid:1390308504.49 - [NO ANSWER CALL]<br> a2billing.php,1: file:Class.A2Billing.php - line:677 - uniqueid:1390308504.49 - FORCE LANGUAGE : BR<br> a2billing.php,1: file:Class.A2Billing.php - line:687 - uniqueid:1390308504.49 - [SET CHANNEL(language) br]<br>
a2billing.php,1: file:Class.A2Billing.php - line:2635 - uniqueid:1390308504.49 - [CID_ENABLE - CID_CONTROL - <a>CID:7760</a>]<br> a2billing.php,1: file:Class.A2Billing.php - line:2650 - uniqueid:1390308504.49 -<br> a2billing.php,1: file:Class.A2Billing.php - line:2654 - uniqueid:1390308504.49 - [CID_CONTROL - NO CALLERID]<br>
a2billing.php,1: file:Class.A2Billing.php - line:2721 - uniqueid:1390308504.49 - [CID_CONTROL - NO CALLERID - ASK PIN CODE]<br> a2billing.php,1: file:Class.A2Billing.php - line:2862 - uniqueid:1390308504.49 - - Account code ::><br>
a2billing.php,1: file:Class.A2Billing.php - line:3044 - uniqueid:1390308504.49 - Requesting DTMF, CARDNUMBER_LENGTH_MAX 20<br> -- <IAX2/202020-433> Playing 'prepaid-enter-pin-number.gsm' (language 'br')<br>
a2billing.php,1: file:Class.A2Billing.php - line:3046 - uniqueid:1390308504.49 - RES DTMF :<br> a2billing.php,1: file:Class.A2Billing.php - line:3050 - uniqueid:1390308504.49 - CARDNUMBER ::><br> a2billing.php,1: file:Class.A2Billing.php - line:3054 - uniqueid:1390308504.49 - PREPAID-NO-CARD-ENTERED<br>
a2billing.php,1: file:Class.A2Billing.php - line:3036 - uniqueid:1390308504.49 - Streamfile : PREPAID-NO-CARD-ENTERED<br> a2billing.php,1: file:Class.A2Billing.php - line:3044 - uniqueid:1390308504.49 - Requesting DTMF, CARDNUMBER_LENGTH_MAX 20<br>
-- <IAX2/202020-433> Playing 'prepaid-enter-pin-number.gsm' (language 'br')<br> a2billing.php,1: file:Class.A2Billing.php - line:3046 - uniqueid:1390308504.49 - RES DTMF : -1<br> a2billing.php,1: file:Class.A2Billing.php - line:3050 - uniqueid:1390308504.49 - CARDNUMBER ::> -1<br>
a2billing.php,1: file:Class.A2Billing.php - line:3060 - uniqueid:1390308504.49 - PREPAID-INVALID-DIGITS<br> a2billing.php,1: file:Class.A2Billing.php - line:3036 - uniqueid:1390308504.49 - Streamfile : PREPAID-INVALID-DIGITS<br>
a2billing.php,1: file:Class.A2Billing.php - line:3044 - uniqueid:1390308504.49 - Requesting DTMF, CARDNUMBER_LENGTH_MAX 20<br> a2billing.php,1: file:Class.A2Billing.php - line:3046 - uniqueid:1390308504.49 - RES DTMF :<br>
a2billing.php,1: file:Class.A2Billing.php - line:3050 - uniqueid:1390308504.49 - CARDNUMBER ::><br> a2billing.php,1: file:Class.A2Billing.php - line:3054 - uniqueid:1390308504.49 - PREPAID-NO-CARD-ENTERED<br> a2billing.php,1: file:a2billing.php - line:181 - uniqueid:1390308504.49 - [TRY : callingcard_ivr_authenticate]<br>
a2billing.php,1: file:a2billing.php - line:613 - uniqueid:1390308504.49 - [NO AUTH (CN:, cia_res:-1, CREDIT:)]<br> -- <IAX2/202020-433>AGI Script a2billing.php completed, returning 4<br> == Spawn extension (a2billing, 7789, 2) exited non-zero on 'IAX2/202020-433'<br>
-- Hungup 'IAX2/202020-433'<u></u><u></u></p><div><div><div><div><div><div><div><p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p></div><div><p class="MsoNormal" style="margin-bottom:12.0pt">
Extencions.conf<br><br><br>[root@c3po rrl]# cat /etc/asterisk/extensions.conf<br>[general]<br>static=yes<br>writeprotect=no<br>autofallthrough=yes<br>clearglobalvars=yes<br><br>[a2billing]<br><br><br><br>exten => s-NOANSWER,1,Hangup<br>
exten => s-CONGESTION,1,Goto(s-CHANUNAVAIL,1)<br>exten => s-CANCEL,1,Hangup<br>exten => s-BUSY,1,Busy<br>exten => s-CHANUNAVAIL,1,Playtones(busy)<br>exten => s-CHANUNAVAIL,n,Busy(10)<br>exten => s-CHANUNAVAIL,n,Hangup()<br>
<br><br>exten => _X.,1,NoOp(A2Billing Start)<br>exten => _X.,n,DeadAgi(a2billing.php,1)<br>exten => _X.,1,Hangup()<br><br>;exten => _X.,1,AGI(a2billing.php,1)<br>;exten => _X.,n,Hangup<br><br>exten => h,n,Hangup<u></u><u></u></p>
</div><div><p class="MsoNormal"><br>-- <u></u><u></u></p><div><p class="MsoNormal">-- <br>Raphael Rodrigues <br>Analista de Redes - Pd's Informática ltda<br>Linux user number 510457<br>LPI000275344<br>CISCO ID: CSCO12223327<br>
<a href="http://www.softwarelivre-campos.org/" target="_blank">http://www.softwarelivre-campos.org/</a> <br><a href="http://www.pdsnet.com.br/" target="_blank">http://www.pdsnet.com.br/</a><br><br>"Felizes aqueles cujo conhecimento é livre de ilusões e superstições", Sidarta Gautama.<u></u><u></u></p>
</div></div></div></div></div></div></div></div></div></div></div></div></div><br>_______________________________________________<br>
KHOMP: completa linha de placas externas FXO, FXS, GSM e E1<br>
Media Gateways de 1 a 64 E1s para SIP com R2, ISDN e SS7<br>
Intercomunicadores para acesso remoto via rede IP e telefones IP<br>
Conheça todo o portfólio em <a href="http://www.Khomp.com" target="_blank">www.Khomp.com</a><br>
_______________________________________________<br>
Para remover seu email desta lista, basta enviar um email em branco para <a href="mailto:asteriskbrasil-unsubscribe@listas.asteriskbrasil.org">asteriskbrasil-unsubscribe@listas.asteriskbrasil.org</a><br></blockquote></div>
<br><br clear="all"><br>-- <br><div dir="ltr">-- <br>Raphael Rodrigues <br>Analista de Redes - Pd's Informática ltda<br>Linux user number 510457<br><span>LPI000275344</span><br> CISCO ID: CSCO12223327<br><a href="http://www.softwarelivre-campos.org/" target="_blank">http://www.softwarelivre-campos.org/</a> <br>
<a href="http://www.pdsnet.com.br/" target="_blank">http://www.pdsnet.com.br/</a><br><br><span>"Felizes aqueles cujo conhecimento é livre de ilusões e superstições", Sidarta Gautama.</span></div>
</div>