<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:lucida console,sans-serif;font-size:12pt">Matheus,<br>Olha aqui: &nbsp;  <br>Chan 32 - Far end disconnected. Reason: Normal Clearing<br>MFC/R2 call disconnected on channel 32<br>O NEC atende e manda desconectar em modo normal instantaneamente. <br>Vc esta com problema de tempo no NEC. Veja os CIC no NEC se estão alinhados com o asterisk se sim, veja pq o NEC esta mandando desconectar logo após o atendimento.<br><div>&nbsp;</div><div><div><div><div><div><font face="Arial Black" size="4">Wagner de Oliveira</font></div><div><font face="Arial Black" size="4" color="#ffff40"><em><font color="#0000ff"><font color="#ff0000">Gateway</font> - The&nbsp;gateway to the Brazil West&nbsp;Center Zone&nbsp;</font> </em></font></div><div><font face="Arial Black" size="4" color="#0000ff"><em>GSM, PDH, SDH, WDM, DWDM, SWITCH and much
 more...</em></font></div><div><font face="Arial Black" size="4"><a rel="nofollow" target="_blank" href="mailto:wag%C3%A3obr@yahoo.com">wagaobr@yahoo.com</a></font></div><div>&nbsp;</div></div></div></div></div><div><br></div><div><br></div><div style="font-family: lucida console,sans-serif; font-size: 12pt;"><br><div style="font-family: arial,helvetica,sans-serif; font-size: 13px;"><font face="Tahoma" size="2"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Matheus Cucoloto &lt;matheuscucoloto@gmail.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> asteriskbrasil &lt;asteriskbrasil@listas.asteriskbrasil.org&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Sat, April 17, 2010 9:37:09 AM<br><b><span style="font-weight: bold;">Subject:</span></b> [AsteriskBrasil] OpenR2+Asterisk+Nec<br></font><br>
Bom dia galéra.<br><br>Fiquei a semana inteira tentando entender aonde esta a falha mas não<br>encontrei, chegou a hora de perguntar.<br><br>Verifiquei ja aterramento e parametros de clock porem ainda não<br>encontrei a solução.<br><br>Em um ambiente tenho E1 da GVT R2 ligado ao asterisk, e o asterisk<br>ligado a um PABX NEC também em R2.<br><br>Estou usando placa da sangoma com 2 E1 (primeira vez que estou usando<br>essa marca).<br><br>O que acontece é que a ligação recebida entra no asterisk pela GVT e é<br>encaminhada para o PABX, quando a ligação é atendida da 1 segundo e a<br>ligação cai.<br><br>Se eu pego a ligação e ao invez de jogar para o PABX eu jogo para um<br>ramal SIP a ligação acontece sem nenhum problema.<br><br>Se alguem tiver alguma ideia...<br><br>Veja os logs do console:<br><br>New MFC/R2 call detected on chan 1.<br>MFC/R2 call offered on chan 1. ANI = 4399216100, DNIS = 9624, Category<br>= National
 Subscriber<br>MFC/R2 call has been accepted on backward channel 1<br>-- Executing [9624@default:1] NoOp("DAHDI/1-1", "---&gt; NOVA LIGACAO<br>EXTERNA ENTRANDO &lt;--") in new stack<br>-- Executing [9624@default:2] NoOp("DAHDI/1-1", "---&gt; DE 4399216100<br>PARA 9624 &lt;--") in new stack<br>-- Executing [9624@default:3] Dial("DAHDI/1-1",<br>"DAHDI/g1/9624,40,TtWwRr") in new stack<br>-- Called g1/9624<br><br>voip*CLI&gt;<br><br>MFC/R2 call has been accepted on forward channel 32<br>&nbsp;  -- DAHDI/32-1 is ringing<br>MFC/R2 call has been answered on channel 32<br>&nbsp;  -- DAHDI/32-1 answered DAHDI/1-1<br>Chan 32 - Far end disconnected. Reason: Normal Clearing<br>MFC/R2 call disconnected on channel 32<br>&nbsp;  -- Hungup 'DAHDI/32-1'<br> == Spawn extension (default, 9624, 3) exited non-zero on 'DAHDI/1-1'<br>&nbsp;  -- Hungup 'DAHDI/1-1'<br><br>Veja minhas conf:<br><br>[root@voip ~]# cat
 /etc/dahdi/system.conf<br>loadzone=br<br>defaultzone=br<br><br>#Sangoma A102 port 1 [slot:0 bus:48 span:1] &lt;wanpipe1&gt;<br>span=1,0,1,cas,hdb3<br>cas=1-15:1101<br>cas=17-31:1101<br><br>#Sangoma A102 port 2 [slot:0 bus:48 span:2] &lt;wanpipe2&gt;<br>span=2,0,1,cas,hdb3<br>cas=32-46:1101<br>cas=48-62:1101<br><br><br>[root@voip~]# cat /etc/wanpipe/wanpipe1.conf | grep -v "^#"<br><br>[devices]<br>wanpipe1 = WAN_AFT_TE1, Comment<br><br>[interfaces]<br>w1g1 = wanpipe1, , TDM_VOICE, Comment<br><br>[wanpipe1]<br>CARD_TYPE&nbsp; &nbsp; &nbsp;  = AFT<br>S514CPU&nbsp; &nbsp; &nbsp; &nbsp;  = A<br>CommPort&nbsp; &nbsp; &nbsp; &nbsp; = PRI<br>AUTO_PCISLOT&nbsp; &nbsp; = NO<br>PCISLOT&nbsp; &nbsp; &nbsp; &nbsp;  = 0<br>PCIBUS&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 48<br>FE_MEDIA&nbsp; &nbsp; &nbsp; &nbsp; = E1<br>FE_LCODE&nbsp; &nbsp; &nbsp; &nbsp; = HDB3<br>FE_FRAME&nbsp; &nbsp; &nbsp; &nbsp; = NCRC4<br>FE_LINE&nbsp; &nbsp; &nbsp; &nbsp;  = 1<br>TE_CLOCK&nbsp;
 &nbsp; &nbsp; &nbsp; = NORMAL<br>TE_REF_CLOCK&nbsp; &nbsp; = 0<br>TE_SIG_MODE&nbsp; &nbsp;  = CAS<br>TE_HIGHIMPEDANCE&nbsp; &nbsp; &nbsp; &nbsp; = NO<br>LBO&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  = 120OH<br>FE_TXTRISTATE&nbsp;  = NO<br>MTU&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  = 1500<br>UDPPORT&nbsp; &nbsp; &nbsp; &nbsp;  = 9000<br>TTL&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  = 255<br>IGNORE_FRONT_END = NO<br>TDMV_SPAN&nbsp; &nbsp; &nbsp;  = 1<br>TDMV_DCHAN&nbsp; &nbsp; &nbsp; = 0<br>TDMV_HW_DTMF&nbsp; &nbsp; = NO<br>TDMV_HW_FAX_DETECT = NO<br><br>[w1g1]<br>ACTIVE_CH&nbsp; &nbsp; &nbsp;  = ALL<br>TDMV_HWEC&nbsp; &nbsp; &nbsp;  = YES<br><br><br>[root@voip ~]# cat /etc/wanpipe/wanpipe2.conf | grep -v "^#"<br><br>[devices]<br>wanpipe2 = WAN_AFT_TE1, Comment<br><br>[interfaces]<br>w2g1 = wanpipe2, , TDM_VOICE, Comment<br><br>[wanpipe2]<br>CARD_TYPE&nbsp; &nbsp; &nbsp;  = AFT<br>S514CPU&nbsp; &nbsp; &nbsp; &nbsp;  = A<br>CommPort&nbsp; &nbsp; &nbsp;
 &nbsp; = PRI<br>AUTO_PCISLOT&nbsp; &nbsp; = NO<br>PCISLOT&nbsp; &nbsp; &nbsp; &nbsp;  = 0<br>PCIBUS&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = 48<br>FE_MEDIA&nbsp; &nbsp; &nbsp; &nbsp; = E1<br>FE_LCODE&nbsp; &nbsp; &nbsp; &nbsp; = HDB3<br>FE_FRAME&nbsp; &nbsp; &nbsp; &nbsp; = NCRC4<br>FE_LINE&nbsp; &nbsp; &nbsp; &nbsp;  = 2<br>TE_CLOCK&nbsp; &nbsp; &nbsp; &nbsp; = MASTER<br>TE_REF_CLOCK&nbsp; &nbsp; = 0<br>TE_SIG_MODE&nbsp; &nbsp;  = CAS<br>TE_HIGHIMPEDANCE&nbsp; &nbsp; &nbsp; &nbsp; = NO<br>LBO&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  = 120OH<br>FE_TXTRISTATE&nbsp;  = NO<br>MTU&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  = 1500<br>UDPPORT&nbsp; &nbsp; &nbsp; &nbsp;  = 9000<br>TTL&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;  = 255<br>IGNORE_FRONT_END = NO<br>TDMV_SPAN&nbsp; &nbsp; &nbsp;  = 2<br>TDMV_DCHAN&nbsp; &nbsp; &nbsp; = 0<br>TDMV_HW_DTMF&nbsp; &nbsp; = NO<br>TDMV_HW_FAX_DETECT = NO<br><br>[w2g1]<br>ACTIVE_CH&nbsp; &nbsp; &nbsp;  = ALL<br>TDMV_HWEC&nbsp;
 &nbsp; &nbsp;  = YES<br><br>[root@voip ~]# cat /etc/asterisk/chan_dahdi.conf | grep -v "^#"<br><br>[channels]<br><br>;Sangoma A102 port 1 [slot:0 bus:48 span:1] &lt;wanpipe1&gt; GVT<br>group=0<br>callgroup=0<br>pickupgroup=0<br>rxgain=0.0<br>txgain=0.0<br><br>;Configuracao para
 MFC/R2<br>signalling=mfcr2<br>mfcr2_variant=br<br>mfcr2_get_ani_first=no<br>mfcr2_max_ani=20<br>mfcr2_max_dnis=4<br>mfcr2_category=national_subscriber<br>mfcr2_logdir=span1<br>mfcr2_call_files=yes<br>mfcr2_logging=all<br>mfcr2_mfback_timeout=-1<br>mfcr2_metering_pulse_timeout=-1<br>mfcr2_allow_collect_calls=no<br>mfcr2_double_answer=yes<br>mfcr2_immediate_accept=no<br>mfcr2_forced_release=no<br>mfcr2_charge_calls=yes<br>;mfcr2_advanced_protocol_file=/etc/r2proto.conf<br><br>context=contexto-pstn<br>usecallerid=yes<br>callwaiting=yes<br>usecallingpres=yes<br>callwaitingcallerid=yes<br>threewaycalling=yes<br>transfer=yes<br>canpark=yes<br>cancallforward=yes<br>callreturn=yes<br>echocancel=yes<br>echocancelwhenbridged=yes<br>faxdetect=incoming<br>channel =&gt; 1-15<br>channel =&gt; 17-31<br><br><br>;Sangoma A102 port 2 [slot:0 bus:48 span:2] &lt;wanpipe2&gt; PABX<br>group=1<br>callgroup=1<br>pickupgroup=1<br>rxgain=0.0<br>txgain=0.0<br><br>;Configuracao
 para MFC/R2<br>signalling=mfcr2<br>mfcr2_variant=br<br>mfcr2_get_ani_first=no<br>mfcr2_max_ani=20<br>mfcr2_max_dnis=4<br>mfcr2_category=national_subscriber<br>mfcr2_logdir=span1<br>mfcr2_call_files=yes<br>mfcr2_logging=all<br>mfcr2_mfback_timeout=-1<br>mfcr2_metering_pulse_timeout=-1<br>mfcr2_allow_collect_calls=no<br>mfcr2_double_answer=yes<br>mfcr2_immediate_accept=no<br>mfcr2_forced_release=no<br>mfcr2_charge_calls=yes<br>;mfcr2_advanced_protocol_file=/etc/r2proto.conf<br><br><br>context=contexto-pabx<br>usecallerid=yes<br>callwaiting=yes<br>usecallingpres=yes<br>callwaitingcallerid=yes<br>threewaycalling=yes<br>transfer=yes<br>canpark=yes<br>cancallforward=yes<br>callreturn=yes<br>echocancel=yes<br>echocancelwhenbridged=yes<br>faxdetect=incoming<br>channel =&gt; 32-46<br>channel =&gt; 48-62<br><br><br><br><br>-- <br>-----------------------------------------------<br>Matheus Cucoloto<br>Unix Expertise<br>Voip
 Expertise<br>_______________________________________________<br>KHOMP: qualidade em placas de E1, GSM, FXS e FXO para Asterisk. <br>- Hardware com alta disponibilidade de recursos e qualidade KHOMP<br>- Suporte técnico local qualificado e gratuito <br>Conheça a linha completa de produtos KHOMP em <a target="_blank" href="http://www.khomp.com.br">www.khomp.com.br</a><br>_______________________________________________<br>A Redfone é líder no fornecimento de bridges TDMoE -&gt; E1<br>- Valor similar ao de placas E1 PCI;<br>- Não há problemas de compatibilidade com barramento PCI;<br>- Possibilitam a construção de soluções de alta disponibilidade(dois servidores compartilham o mesmo E1)<br>Conheça mais sobre este produto em <a target="_blank" href="http://www.red-fone.com">www.red-fone.com</a><br>_______________________________________________<br><br><br>Lista de discussões <a target="_blank"
 href="http://AsteriskBrasil.org">AsteriskBrasil.org</a><br><a ymailto="mailto:AsteriskBrasil@listas.asteriskbrasil.org" href="mailto:AsteriskBrasil@listas.asteriskbrasil.org">AsteriskBrasil@listas.asteriskbrasil.org</a><br><span><a target="_blank" href="http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil">http://listas.asteriskbrasil.org/mailman/listinfo/asteriskbrasil</a></span><br></div></div>
</div><br>

      </body></html>