<div dir="ltr"><div><div><div><div>Pessoal bom dia,<br><br><br></div>Primeiramente saudações pingüinianas a todos.<br><br></div>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..<br>
<br></div>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.<br>
<br></div><div>Segue abaixo log do A2b e contexto.<br></div><div><br></div>Obrigado pela atenção pessoal, abraço.<br><br><br>-- Accepting AUTHENTICATED call from xxx.xxx.xxx.xxx:<br>       &gt; requested format = alaw,<br>
       &gt; requested prefs = (alaw|ulaw|gsm),<br>       &gt; actual format = ulaw,<br>       &gt; host prefs = (ulaw|alaw|gsm),<br>       &gt; priority = mine<br>    -- Executing [7789@a2billing:1] NoOp(&quot;IAX2/202020-433&quot;, &quot;A2Billing Start&quot;) in new stack<br>
    -- Executing [7789@a2billing:2] DeadAGI(&quot;IAX2/202020-433&quot;, &quot;a2billing.php,1&quot;) 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] =&gt; |60|HiL(%timeout%:61000:30000)<br> a2billing.php,1:     [description] =&gt; agi-config<br> a2billing.php,1:     [asterisk_version] =&gt; 1_6<br>
 a2billing.php,1:     [answer_call] =&gt; 0<br> a2billing.php,1:     [play_audio] =&gt; 0<br> a2billing.php,1:     [say_goodbye] =&gt; 0<br> a2billing.php,1:     [play_menulanguage] =&gt; 0<br> a2billing.php,1:     [force_language] =&gt; BR<br>
 a2billing.php,1:     [intro_prompt] =&gt;<br> a2billing.php,1:     [min_credit_2call] =&gt; 0<br> a2billing.php,1:     [min_duration_2bill] =&gt; 3<br> a2billing.php,1:     [notenoughcredit_cardnumber] =&gt; 0<br> a2billing.php,1:     [notenoughcredit_assign_newcardnumber_cid] =&gt; 0<br>
 a2billing.php,1:     [use_dnid] =&gt; 1<br> a2billing.php,1:     [no_auth_dnid] =&gt; Array<br> a2billing.php,1:         (<br> a2billing.php,1:             [0] =&gt; 2400<br> a2billing.php,1:             [1] =&gt; 2300<br>
 a2billing.php,1:         )<br> a2billing.php,1:<br> a2billing.php,1:     [number_try] =&gt; 1<br> a2billing.php,1:     [force_callplan_id] =&gt;<br> a2billing.php,1:     [say_balance_after_auth] =&gt; 0<br> a2billing.php,1:     [say_balance_after_call] =&gt; 0<br>
 a2billing.php,1:     [say_rateinitial] =&gt; 0<br> a2billing.php,1:     [say_timetocall] =&gt; 0<br> a2billing.php,1:     [auto_setcallerid] =&gt; 1<br> a2billing.php,1:     [force_callerid] =&gt;<br> a2billing.php,1:     [cid_sanitize] =&gt; 0<br>
 a2billing.php,1:     [cid_enable] =&gt; 1<br> a2billing.php,1:     [cid_askpincode_ifnot_callerid] =&gt; 1<br> a2billing.php,1:     [failover_lc_prefix] =&gt; 0<br> a2billing.php,1:     [cid_auto_assign_card_to_cid] =&gt; 1<br>
 a2billing.php,1:     [callerid_authentication_over_cardnumber] =&gt; 0<br> a2billing.php,1:     [sip_iax_friends] =&gt; 1<br> a2billing.php,1:     [sip_iax_pstn_direct_call_prefix] =&gt; 555<br> a2billing.php,1:     [sip_iax_pstn_direct_call] =&gt; 0<br>
 a2billing.php,1:     [ivr_voucher] =&gt; 0<br> a2billing.php,1:     [ivr_voucher_prefix] =&gt; 8<br> a2billing.php,1:     [jump_voucher_if_min_credit] =&gt; 0<br> a2billing.php,1:     [dialcommand_param] =&gt; |60|<br> a2billing.php,1:     [dialcommand_param_sipiax_friend] =&gt; |60|L(%timeout%:61000:30000)<br>
 a2billing.php,1:     [switchdialcommand] =&gt; 0<br> a2billing.php,1:     [failover_recursive_limit] =&gt; 2<br> a2billing.php,1:     [maxtime_tocall_negatif_free_route] =&gt; 5400<br> a2billing.php,1:     [send_reminder] =&gt; 0<br>
 a2billing.php,1:     [record_call] =&gt; 0<br> a2billing.php,1:     [monitor_formatfile] =&gt; gsm<br> a2billing.php,1:     [agi_force_currency] =&gt;<br> a2billing.php,1:     [currency_association] =&gt; Array<br> a2billing.php,1:         (<br>
 a2billing.php,1:             [0] =&gt; usd:dollars<br> a2billing.php,1:             [1] =&gt; mxn:pesos<br> a2billing.php,1:             [2] =&gt; eur:euros<br> a2billing.php,1:             [3] =&gt; all:credit<br> a2billing.php,1:         )<br>
 a2billing.php,1:<br> a2billing.php,1:     [local_dialing_addcountryprefix] =&gt; 0<br> a2billing.php,1:     [max_call_call_2_did] =&gt; 3600<br> a2billing.php,1:     [file_conf_enter_destination] =&gt; prepaid-enter-dest<br>
 a2billing.php,1:     [conf_order_menulang] =&gt; br:br:br<br> a2billing.php,1:     [callback_bill_1stleg_ifcall_notconnected] =&gt; 1<br> a2billing.php,1:     [international_prefixes] =&gt; Array<br> a2billing.php,1:         (<br>
 a2billing.php,1:             [0] =&gt; 011<br> a2billing.php,1:             [1] =&gt; 00<br> a2billing.php,1:             [2] =&gt; 09<br> a2billing.php,1:             [3] =&gt; 1<br> a2billing.php,1:         )<br> a2billing.php,1:<br>
 a2billing.php,1:     [extracharge_did] =&gt; Array<br> a2billing.php,1:         (<br> a2billing.php,1:             [0] =&gt; 1800<br> a2billing.php,1:             [1] =&gt; 1900<br> a2billing.php,1:         )<br> a2billing.php,1:<br>
 a2billing.php,1:     [extracharge_fee] =&gt; Array<br> a2billing.php,1:         (<br> a2billing.php,1:             [0] =&gt; 0<br> a2billing.php,1:             [1] =&gt; 0<br> a2billing.php,1:         )<br> a2billing.php,1:<br>
 a2billing.php,1:     [extracharge_buyfee] =&gt; Array<br> a2billing.php,1:         (<br> a2billing.php,1:             [0] =&gt; 0<br> a2billing.php,1:             [1] =&gt; 0<br> a2billing.php,1:         )<br> a2billing.php,1:<br>
 a2billing.php,1:     [maxtime_tounlimited_calls] =&gt; 5400<br> a2billing.php,1:     [maxtime_tofree_calls] =&gt; 5400<br> a2billing.php,1:     [callplan_deck_minute_threshold] =&gt;<br> a2billing.php,1:     [disable_announcement_seconds] =&gt; 0<br>
 a2billing.php,1:     [currency_cents_association] =&gt; Array<br> a2billing.php,1:         (<br> a2billing.php,1:             [0] =&gt; usd:prepaid-cents<br> a2billing.php,1:             [1] =&gt; eur:prepaid-cents<br> a2billing.php,1:             [2] =&gt; gbp:prepaid-pence<br>
 a2billing.php,1:             [3] =&gt; all:credit<br> a2billing.php,1:         )<br> a2billing.php,1:<br> a2billing.php,1:     [verbosity_level] =&gt; 4<br> a2billing.php,1:     [logging_level] =&gt; 4<br> a2billing.php,1:     [dial_balance_reservation] =&gt; 0.25<br>
 a2billing.php,1:     [callerid_update] =&gt; 0<br> a2billing.php,1:     [cid_auto_create_card] =&gt; 0<br> a2billing.php,1:     [cid_auto_create_card_len] =&gt; 10<br> a2billing.php,1:     [cid_auto_create_card_typepaid] =&gt; PREPAID<br>
 a2billing.php,1:     [cid_auto_create_card_credit] =&gt; 0<br> a2billing.php,1:     [cid_auto_create_card_credit_limit] =&gt; 0<br> a2billing.php,1:     [cid_auto_create_card_tariffgroup] =&gt; 1<br> a2billing.php,1:     [busy_timeout] =&gt; 1<br>
 a2billing.php,1:     [callback_reduce_balance] =&gt; 1<br> a2billing.php,1:     [ivr_enable_locking_option] =&gt; 0<br> a2billing.php,1:     [ivr_enable_account_information] =&gt; 0<br> a2billing.php,1:     [ivr_enable_ivr_speeddial] =&gt; 0<br>
 a2billing.php,1:     [play_rate_cents_if_lower_one] =&gt; 0<br> a2billing.php,1:     [callback_beep_to_enter_destination] =&gt; 0<br> a2billing.php,1:     [cid_prompt_callback_confirm_phonenumber] =&gt; 0<br> a2billing.php,1:     [lcr_mode] =&gt; 0<br>
 a2billing.php,1:     [logger_enable] =&gt; 1<br> a2billing.php,1:     [log_file] =&gt; /var/log/a2billing/a2billing.log<br> a2billing.php,1:     [dialcommand_param_call_2did ] =&gt; |30|HL(3600000:61000:30000)<br> a2billing.php,1:     [currency_association_internal] =&gt; Array<br>
 a2billing.php,1:         (<br> a2billing.php,1:             [usd] =&gt; dollars<br> a2billing.php,1:             [mxn] =&gt; pesos<br> a2billing.php,1:             [eur] =&gt; euros<br> a2billing.php,1:             [all] =&gt; credit<br>
 a2billing.php,1:         )<br> a2billing.php,1:<br> a2billing.php,1:     [currency_cents_association_internal] =&gt; Array<br> a2billing.php,1:         (<br> a2billing.php,1:             [usd] =&gt; prepaid-cents<br> a2billing.php,1:             [eur] =&gt; prepaid-cents<br>
 a2billing.php,1:             [gbp] =&gt; prepaid-pence<br> a2billing.php,1:             [all] =&gt; credit<br> a2billing.php,1:         )<br> a2billing.php,1:<br> a2billing.php,1:     [file_conf_enter_menulang] =&gt; prepaid-menulang<br>
 a2billing.php,1:     [ivr_voucher_prefixe] =&gt; 8<br> a2billing.php,1:     [cheat_on_announcement_time] =&gt; 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] =&gt; a2billing.php<br>
 a2billing.php,1:     [agi_channel] =&gt; IAX2/202020-433<br> a2billing.php,1:     [agi_language] =&gt; br<br> a2billing.php,1:     [agi_type] =&gt; IAX2<br> a2billing.php,1:     [agi_uniqueid] =&gt; 1390308504.49<br> a2billing.php,1:     [agi_version] =&gt; 1.6.2.22<br>
 a2billing.php,1:     [agi_callerid] =&gt; 7760<br> a2billing.php,1:     [agi_calleridname] =&gt; CELSO TI-7760<br> a2billing.php,1:     [agi_callingpres] =&gt; 0<br> a2billing.php,1:     [agi_callingani2] =&gt; 0<br> a2billing.php,1:     [agi_callington] =&gt; 0<br>
 a2billing.php,1:     [agi_callingtns] =&gt; 0<br> a2billing.php,1:     [agi_dnid] =&gt; unknown<br> a2billing.php,1:     [agi_rdnis] =&gt; unknown<br> a2billing.php,1:     [agi_context] =&gt; a2billing<br> a2billing.php,1:     [agi_extension] =&gt; 7789<br>
 a2billing.php,1:     [agi_priority] =&gt; 2<br> a2billing.php,1:     [agi_enhanced] =&gt; 0.0<br> a2billing.php,1:     [agi_accountcode] =&gt;<br> a2billing.php,1:     [agi_threadid] =&gt; 139725746394880<br> a2billing.php,1:     [agi_arg_1] =&gt; 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 - CID:7760]<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 ::&gt;<br>
 a2billing.php,1: file:Class.A2Billing.php - line:3044 - uniqueid:1390308504.49 - Requesting DTMF, CARDNUMBER_LENGTH_MAX 20<br>    -- &lt;IAX2/202020-433&gt; Playing &#39;prepaid-enter-pin-number.gsm&#39; (language &#39;br&#39;)<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 ::&gt;<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>
    -- &lt;IAX2/202020-433&gt; Playing &#39;prepaid-enter-pin-number.gsm&#39; (language &#39;br&#39;)<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 ::&gt; -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 ::&gt;<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>    -- &lt;IAX2/202020-433&gt;AGI Script a2billing.php completed, returning 4<br>  == Spawn extension (a2billing, 7789, 2) exited non-zero on &#39;IAX2/202020-433&#39;<br>
    -- Hungup &#39;IAX2/202020-433&#39;<br><div><div><div><div><div><div><div><br><br></div><div>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 =&gt; s-NOANSWER,1,Hangup<br>exten =&gt; s-CONGESTION,1,Goto(s-CHANUNAVAIL,1)<br>exten =&gt; s-CANCEL,1,Hangup<br>exten =&gt; s-BUSY,1,Busy<br>
exten =&gt; s-CHANUNAVAIL,1,Playtones(busy)<br>exten =&gt; s-CHANUNAVAIL,n,Busy(10)<br>exten =&gt; s-CHANUNAVAIL,n,Hangup()<br><br><br>exten =&gt; _X.,1,NoOp(A2Billing Start)<br>exten =&gt; _X.,n,DeadAgi(a2billing.php,1)<br>
exten =&gt; _X.,1,Hangup()<br><br>;exten =&gt; _X.,1,AGI(a2billing.php,1)<br>;exten =&gt; _X.,n,Hangup<br><br>exten =&gt; h,n,Hangup<br><br></div><div><br>-- <br><div dir="ltr">-- <br>Raphael Rodrigues <br>Analista de Redes - Pd&#39;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>&quot;Felizes aqueles cujo conhecimento é livre de ilusões e superstições&quot;, Sidarta Gautama.</span></div>
</div></div></div></div></div></div></div></div>