[AsteriskBrasil] DAHDI MFCR2 - Embratel

deny.santos em gmail.com deny.santos em gmail.com
Quinta Março 28 00:27:12 BRT 2013


On Mar 27, 2013, at 1:04 PM, Alexandre Cavalcante Alencar wrote:

> Cadê seu protocol file?
> 
> Você ativou CAS Persistant Check?
> 
> Sds
> 

Boa noite Alexandre, eu acabei reinstalando o asterisk com o freepbx novamente porem estou com o seguinte erro agora , nao consigo subir o asterisk de forma alguma, ele me gera o erro abaixo no messages e tambem entra em safe mode 

Erro ao startar o asterisk amportal start ou /etc/init.d/asterisk 

/usr/sbin/safe_asterisk: line 145:  7517 Illegal instruction     (core dumped) nice -n $PRIORITY ${ASTSBINDIR}/asterisk -f ${CLIARGS} ${ASTARGS} > /dev/${TTY} 2>&1 < /dev/${TTY}
Asterisk ended with exit status 132
Asterisk exited on signal 4.
Automatically restarting Asterisk.
/usr/sbin/safe_asterisk: line 145:  7604 Illegal instruction     (core dumped) nice -n $PRIORITY ${ASTSBINDIR}/asterisk -f ${CLIARGS} ${ASTARGS} > /dev/${TTY} 2>&1 < /dev/${TTY}
Asterisk ended with exit status 132
Asterisk exited on signal 4.
Automatically restarting Asterisk.


Erro no messages 

Mar 28 00:23:02 srv01-asterisk kernel: asterisk[5395] trap invalid opcode rip:2b77e45f3a46 rsp:7fff79c23990 error:0
Mar 28 00:23:07 srv01-asterisk kernel: asterisk[5444] trap invalid opcode rip:2b22e72a7a46 rsp:7fffca5d7e50 error:0
Mar 28 00:23:12 srv01-asterisk kernel: asterisk[5494] trap invalid opcode rip:2b4cbc5f3a46 rsp:7fff29978d50 error:0
Mar 28 00:23:17 srv01-asterisk kernel: asterisk[5537] trap invalid opcode rip:2b2bd2295a46 rsp:7fffecee8670 error:0
Mar 28 00:23:21 srv01-asterisk kernel: asterisk[5589] trap invalid opcode rip:2ae2266a4a46 rsp:7ffff3f99eb0 error:0

Meu uname -a 

2.6.18-348.3.1.el5 #1 SMP Mon Mar 11 19:39:25 EDT 2013 x86_64 x86_64 x86_64 GNU/Linux

Meu processador é este 

# cat /proc/cpuinfo
processor	: 0
vendor_id	: GenuineIntel
cpu family	: 15
model		: 6
model name	:               Intel(R) Pentium(R) D CPU 3.20GHz
stepping	: 5
cpu MHz		: 3192.176
cache size	: 2048 KB
physical id	: 0
siblings	: 2
core id		: 0
cpu cores	: 2
apicid		: 0
fpu		: yes
fpu_exception	: yes
cpuid level	: 6
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl est cid cx16 xtpr lahf_lm
bogomips	: 6384.35
clflush size	: 64
cache_alignment	: 128
address sizes	: 36 bits physical, 48 bits virtual
power management:

processor	: 1
vendor_id	: GenuineIntel
cpu family	: 15
model		: 6
model name	:               Intel(R) Pentium(R) D CPU 3.20GHz
stepping	: 5
cpu MHz		: 3192.176
cache size	: 2048 KB
physical id	: 0
siblings	: 2
core id		: 1
cpu cores	: 2
apicid		: 1
fpu		: yes
fpu_exception	: yes
cpuid level	: 6
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm syscall nx lm constant_tsc pni monitor ds_cpl est cid cx16 xtpr lahf_lm
bogomips	: 6384.56
clflush size	: 64
cache_alignment	: 128
address sizes	: 36 bits physical, 48 bits virtual
power management:



> 
> 
> 
> 
> On Tue, Mar 26, 2013 at 9:12 PM, deny.santos em gmail.com <deny.santos em gmail.com> wrote:
> 
> On Mar 26, 2013, at 6:56 PM, Alexandre Cavalcante Alencar wrote:
> 
>> Olá
>> 
>> Qual seu intuito e o conteúdo do protocol file?
>> 
>> mfcr2_advanced_protocol_file=/etc/asterisk/r2proto.conf
>> 
>> Não use o protocol file se não souber exatamente o que está fazendo. No diretório doc/asterisk/br tem um README com vários exemplos para as operadoras brasileiras, incluindo a Embratel.
>> 
>> 
> 
> Ola Alexandre, eu estava utilizando justamente com a configuração para a Embratel , fiz algumas alterações e agora estou recebendo esta mensagem abaixo porem ele gera o Hangup no final e nem chega a chamar.
> 
> Chan 1 - Handling persistent pattern 0x00
> New MFC/R2 call detected on chan 1.
> Chan 1 - Handling persistent pattern 0x08
> Chan 1 - Far end disconnected. Reason: Normal Clearing
> MFC/R2 call disconnected on channel 1
> MFC/R2 call end on channel 1
> Chan 1 - Handling persistent pattern 0x00
> New MFC/R2 call detected on chan 1.
> MFC/R2 call offered on chan 1. ANI = , DNIS = 1, Category = *Unknown*
> MFC/R2 call has been accepted on backward channel 1
>     -- Executing [1 em from-trunk:1] Set("DAHDI/1-1", "__FROM_DID=1") in new stack
>     -- Executing [1 em from-trunk:2] NoOp("DAHDI/1-1", "Received an unknown call with DID set to 1") in new stack
>     -- Executing [1 em from-trunk:3] Goto("DAHDI/1-1", "s,a2") in new stack
>     -- Goto (from-trunk,s,2)
>     -- Executing [s em from-trunk:2] Answer("DAHDI/1-1", "") in new stack
>     -- Executing [s em from-trunk:3] Wait("DAHDI/1-1", "2") in new stack
> Chan 1 - Handling persistent pattern 0x08
> Chan 1 - Far end disconnected. Reason: Normal Clearing
> MFC/R2 call disconnected on channel 1
>   == Spawn extension (from-trunk, s, 3) exited non-zero on 'DAHDI/1-1'
>     -- Executing [h em from-trunk:1] Macro("DAHDI/1-1", "hangupcall,") in new stack
>     -- Executing [s em macro-hangupcall:1] GotoIf("DAHDI/1-1", "1?theend") in new stack
>     -- Goto (macro-hangupcall,s,3)
>     -- Executing [s em macro-hangupcall:3] ExecIf("DAHDI/1-1", "0?Set(CDR(recordingfile)=)") in new stack
>     -- Executing [s em macro-hangupcall:4] Hangup("DAHDI/1-1", "") in new stack
>   == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'DAHDI/1-1' in macro 'hangupcall'
>   == Spawn extension (from-trunk, h, 1) exited non-zero on 'DAHDI/1-1'
> MFC/R2 call end on channel 1
>     -- Hungup 'DAHDI/1-1'
> 
> 
> 
>> 
>> 
>> 
>> 
>> On Tue, Mar 26, 2013 at 3:18 PM, deny.santos em gmail.com <deny.santos em gmail.com> wrote:
>> 
>> On Mar 26, 2013, at 3:00 PM, Patrick EL Youssef wrote:
>> 
>> > Posta o chan_dahdi.conf
>> 
>> Este é chan_dahdi.conf
>> 
>> trunkgroups]
>> 
>> [channels]
>> 
>> language=br
>> 
>> #include chan_dahdi_additional.conf
>> #include dahdi-channels.conf
>> 
>> usecallerid=yes
>> ;hidecallerid=yes
>> callwaiting=yes
>> callwaitingcallerid=yes
>> threewaycalling=yes
>> transfer=yes
>> cancallforward=yes
>> callreturn=yes
>> immediate=no
>> echocancel=yes
>> echocancelwhenbridged=yes
>> faxdetect=both
>> 
>> dahd_channels
>> 
>> signalling=mfcr2
>> mfcr2_variant=BR
>> mfcr2_get_ani_first=no
>> mfcr2_max_ani=20
>> mfcr2_max_dnis=4
>> mfcr2_category=national_subscriber
>> mfcr2_mfback_timeout=-1
>> mfcr2_metering_pulse_timeout=-1
>> mfcr2_advanced_protocol_file=/etc/asterisk/r2proto.conf
>> mfcr2_logdir=span1
>> mfcr2_logging=all
>> faxdetect=both
>> 
>> context=from-trunk
>> group=0
>> signalling=mfcr2
>> callgroup=1
>> pickupgroup=1
>> channel => 1-15
>> channel => 17-31
>> context=from-trunk
>> group=1
>> signalling=mfcr2
>> callgroup=2
>> pickupgroup=2
>> channel => 32-46
>> channel => 48-62
>> 
>> 
>> 
>> >
>> > Em 26-03-2013 14:55, deny.santos em gmail.com escreveu:
>> >> Bom dia amigos gostaria de uma ajuda de todos, estou configurando um link R2 da embratel porem o mesmo quando recebi chamadas esta gerando este erro no dahdi e derrubando a ligação , alguma ideia ?
>> >>
>> >> Obrigado
>> >>
>> >> New MFC/R2 call detected on chan 1.
>> >> Chan 2 - Handling persistent pattern 0x00
>> >> New MFC/R2 call detected on chan 2.
>> >> MFC/R2 call offered on chan 1. ANI = , DNIS = 1, Category = *Unknown*
>> >> MFC/R2 call has been accepted on backward channel 1
>> >>    -- Executing [1 em from-trunk:1] Set("DAHDI/1-1", "__FROM_DID=1") in new stack
>> >>    -- Executing [1 em from-trunk:2] NoOp("DAHDI/1-1", "Received an unknown call with DID set to 1") in new stack
>> >>    -- Executing [1 em from-trunk:3] Goto("DAHDI/1-1", "s,a2") in new stack
>> >>    -- Goto (from-trunk,s,2)
>> >>    -- Executing [s em from-trunk:2] Answer("DAHDI/1-1", "") in new stack
>> >>    -- Executing [s em from-trunk:3] Wait("DAHDI/1-1", "2") in new stack
>> >> Chan 2 - Handling persistent pattern 0x08
>> >> Chan 2 - Far end disconnected. Reason: Normal Clearing
>> >> MFC/R2 call disconnected on channel 2
>> >> MFC/R2 call end on channel 2
>> >> Chan 1 - Handling persistent pattern 0x08
>> >> Chan 1 - Far end disconnected. Reason: Normal Clearing
>> >> MFC/R2 call disconnected on channel 1
>> >>  == Spawn extension (from-trunk, s, 3) exited non-zero on 'DAHDI/1-1'
>> >>    -- Executing [h em from-trunk:1] Macro("DAHDI/1-1", "hangupcall,") in new stack
>> >>    -- Executing [s em macro-hangupcall:1] GotoIf("DAHDI/1-1", "1?theend") in new stack
>> >>    -- Goto (macro-hangupcall,s,3)
>> >>    -- Executing [s em macro-hangupcall:3] ExecIf("DAHDI/1-1", "0?Set(CDR(recordingfile)=)") in new stack
>> >>    -- Executing [s em macro-hangupcall:4] Hangup("DAHDI/1-1", "") in new stack
>> >>  == Spawn extension (macro-hangupcall, s, 4) exited non-zero on 'DAHDI/1-1' in macro 'hangupcall'
>> >>  == Spawn extension (from-trunk, h, 1) exited non-zero on 'DAHDI/1-1'
>> >> MFC/R2 call end on channel 1
>> >>    -- Hungup 'DAHDI/1-1'
>> >>
>> >>
>> >>
>> >>
>> >> MFC/R2 call offered on chan 2. ANI = , DNIS = 1, Category = *Unknown*
>> >> [2013-03-26 10:43:50] WARNING[5264]: chan_dahdi.c:4127 dahdi_r2_write_log: Chan 1 - MF back cycle timed out!
>> >> [2013-03-26 10:43:50] ERROR[5264]: chan_dahdi.c:4130 dahdi_r2_write_log: Chan 1 - Protocol error. Reason = Multi Frequency Cycle Timeout, R2 State = Seize ACK Transmitted, MF state = Accepted Call Transmitted, MF Group = Backward Group B, CAS = 0x00
>> >> DNIS = 1, ANI = , MF = 0x31
>> >> [2013-03-26 10:43:50] ERROR[5264]: chan_dahdi.c:3915 dahdi_r2_on_protocol_error: MFC/R2 protocol error on chan 1: Multi Frequency Cycle Timeout
>> >> Chan 1 - Handling persistent pattern 0x08
>> >> [2013-03-26 10:43:51] NOTICE[5264]: chan_dahdi.c:4161 dahdi_r2_on_line_idle: Far end unblocked on chan 1
>> >> [2013-03-26 10:43:52] WARNING[5264]: chan_dahdi.c:4127 dahdi_r2_write_log: Chan 2 - MF back cycle timed out!
>> >> [2013-03-26 10:43:52] ERROR[5264]: chan_dahdi.c:4130 dahdi_r2_write_log: Chan 2 - Protocol error. Reason = Multi Frequency Cycle Timeout, R2 State = Seize ACK Transmitted, MF state = Accepted Call Transmitted, MF Group = Backward Group B, CAS = 0x00
>> >> DNIS = 1, ANI = , MF = 0x31
>> >> [2013-03-26 10:43:52] ERROR[5264]: chan_dahdi.c:3915 dahdi_r2_on_protocol_error: MFC/R2 protocol error on chan 2: Multi Frequency Cycle Timeout
>> >> Chan 2 - Handling persistent pattern 0x08
>> >> [2013-03-26 10:43:52] NOTICE[5264]: chan_dahdi.c:4161 dahdi_r2_on_line_idle: Far end unblocked on chan 2
>> >> _______________________________________________
>> >> 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. Conheça em www.Khomp.com.
>> >> _______________________________________________
>> >> DIGIVOICE  Fabricante de Placas de Voz e Channel Bank
>> >> 20 anos de experiência com E1(R2/ISDN), FXS, FXO e GSM
>> >> Centro Treinamento - Curso de PABX IP -  Asterisk  - Site  www.digivoice.com.br
>> >> _______________________________________________
>> >> ALIGERA – Fabricante nacional de Gateways SIP-E1 para R2, ISDN e SS7.
>> >> Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express.
>> >> Channel Bank – Appliance Asterisk - Acesse www.aligera.com.br.
>> >> _______________________________________________
>> >> Para remover seu email desta lista, basta enviar um email em branco para asteriskbrasil-unsubscribe em listas.asteriskbrasil.org
>> >
>> > _______________________________________________
>> > 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. Conheça em www.Khomp.com.
>> > _______________________________________________
>> > DIGIVOICE  Fabricante de Placas de Voz e Channel Bank
>> > 20 anos de experiência com E1(R2/ISDN), FXS, FXO e GSM
>> > Centro Treinamento - Curso de PABX IP -  Asterisk  - Site  www.digivoice.com.br
>> > _______________________________________________
>> > ALIGERA – Fabricante nacional de Gateways SIP-E1 para R2, ISDN e SS7.
>> > Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express.
>> > Channel Bank – Appliance Asterisk - Acesse www.aligera.com.br.
>> > _______________________________________________
>> > Para remover seu email desta lista, basta enviar um email em branco para asteriskbrasil-unsubscribe em listas.asteriskbrasil.org
>> 
>> 
>> _______________________________________________
>> 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. Conheça em www.Khomp.com.
>> _______________________________________________
>> DIGIVOICE  Fabricante de Placas de Voz e Channel Bank
>> 20 anos de experiência com E1(R2/ISDN), FXS, FXO e GSM
>> Centro Treinamento - Curso de PABX IP -  Asterisk  - Site  www.digivoice.com.br
>> _______________________________________________
>> ALIGERA – Fabricante nacional de Gateways SIP-E1 para R2, ISDN e SS7.
>> Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express.
>> Channel Bank – Appliance Asterisk - Acesse www.aligera.com.br.
>> _______________________________________________
>> Para remover seu email desta lista, basta enviar um email em branco para asteriskbrasil-unsubscribe em listas.asteriskbrasil.org
>> 
>> _______________________________________________
>> 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. Conheça em www.Khomp.com.
>> _______________________________________________
>> DIGIVOICE  Fabricante de Placas de Voz e Channel Bank
>> 20 anos de experiência com E1(R2/ISDN), FXS, FXO e GSM
>> Centro Treinamento - Curso de PABX IP -  Asterisk  - Site  www.digivoice.com.br
>> _______________________________________________
>> ALIGERA – Fabricante nacional de Gateways SIP-E1 para R2, ISDN e SS7.
>> Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express.
>> Channel Bank – Appliance Asterisk - Acesse www.aligera.com.br.
>> _______________________________________________
>> Para remover seu email desta lista, basta enviar um email em branco para asteriskbrasil-unsubscribe em listas.asteriskbrasil.org
> 
> 
> _______________________________________________
> 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. Conheça em www.Khomp.com.
> _______________________________________________
> DIGIVOICE  Fabricante de Placas de Voz e Channel Bank
> 20 anos de experiência com E1(R2/ISDN), FXS, FXO e GSM
> Centro Treinamento - Curso de PABX IP -  Asterisk  - Site  www.digivoice.com.br
> _______________________________________________
> ALIGERA – Fabricante nacional de Gateways SIP-E1 para R2, ISDN e SS7.
> Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express.
> Channel Bank – Appliance Asterisk - Acesse www.aligera.com.br.
> _______________________________________________
> Para remover seu email desta lista, basta enviar um email em branco para asteriskbrasil-unsubscribe em listas.asteriskbrasil.org
> 
> _______________________________________________
> 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. Conheça em www.Khomp.com.
> _______________________________________________
> DIGIVOICE  Fabricante de Placas de Voz e Channel Bank
> 20 anos de experiência com E1(R2/ISDN), FXS, FXO e GSM
> Centro Treinamento - Curso de PABX IP -  Asterisk  - Site  www.digivoice.com.br
> _______________________________________________
> ALIGERA – Fabricante nacional de Gateways SIP-E1 para R2, ISDN e SS7.
> Placas de 1E1, 2E1, 4E1 e 8E1 para PCI ou PCI Express.
> Channel Bank – Appliance Asterisk - Acesse www.aligera.com.br.
> _______________________________________________
> Para remover seu email desta lista, basta enviar um email em branco para asteriskbrasil-unsubscribe em listas.asteriskbrasil.org

-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://listas.asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20130328/a522be83/attachment-0001.htm 


Mais detalhes sobre a lista de discussão AsteriskBrasil