[FUG-BR] NETGRAPH (FreeBSD 9.1 + DAHDI 2.4 ( Interface para Asterisk) + foneBridge redFone (interface E1))

Thiago Rocha thiago.rocha em bsd.com.br
Quarta Fevereiro 13 20:01:16 BRST 2013


2013/2/13 Matheus Cucoloto <matheuscucoloto at gmail.com>

> Em 13/02/2013, às 18:47, Thiago Rocha <thiago.rocha at bsd.com.br> escreveu:
>
> > Pessoal,
> >
> > primeiro: desculpe pelo tamanho da mensagem, mas acredito ser necessário
> > para me fazer entender.
> > segundo: já conversei com algumas pessoas que trabalhando com asterisk,
> mas
> > a questão sempre é o BSD, apesar de existir o driver ainda não encontrei
> > alguém que tenha funcionando, por isso a lista de BSD.
>
> Opa… Fazia tempo que não dava letra por aqui...
>
>
Mateus,

Pra mim pelo menos.. você deu a "letra" em ótima hora :)


> Thiago, não tenho como te dar a solução para o problema mas um exemplo de
> configuração com TDMoE com FreeBSD.
>
>
> Usando CIANET (200 e la vai cacetada ramais)…
>
> rc.conf
>
> # Interface com os CIANET em cascata!
> ifconfig_bce1="UP media 100baseTX mediaopt full-duplex"
>
> # DAHDI
> dahdi_enable="YES"
> dahdi_modules="dahdi dahdi_transcode dahdi_dynamic_eth dahdi_dynamic_ethmf
> dahdi_echocan_oslec"
>

Eu não tinha o [dahdi_modules=....], na mosca ... vlw mesmo...
Agora o driver carrega a interface adequadamente, conforme o log.

Feb 13 19:55:29 voip00-dgm kernel: dahdi: Telephony Interface Registered on
major 196
Feb 13 19:55:29 voip00-dgm kernel: dahdi: Version: 2.4.0-rc5
Feb 13 19:55:29 voip00-dgm kernel: dahdi_transcode: Loaded.
Feb 13 19:55:29 voip00-dgm kernel: DAHDI Dynamic Span support LOADED
Feb 13 19:55:29 voip00-dgm kernel: dahdi_echocan_oslec: Registered echo
canceler 'OSLEC'
Feb 13 19:55:29 voip00-dgm kernel: dahdi_netdev(dahdi at em1): new netgraph
node
Feb 13 19:55:29 voip00-dgm kernel: dahdi_netdev(dahdi at em1): ether
00:15:17:6a:fd:0f
Feb 13 19:55:29 voip00-dgm kernel: TDMoEmf: Added new interface for
DYN/ethmf/em1/00:50:c2:65:d8:e8/0 at em1 (addr=em1/00:50:c2:65:d8:e8/0,
src=00:15:17:6a:fd:0f, subaddr=0)
Feb 13 19:55:29 voip00-dgm kernel: TDMoX: No master.
Feb 13 19:55:29 voip00-dgm kernel: dahdi_netdev(dahdi at em1): existing
netgraph node ether 00:15:17:6a:fd:0f
Feb 13 19:55:29 voip00-dgm kernel: TDMoEmf: Added new interface for
DYN/ethmf/em1/00:50:c2:65:d8:e8/1 at em1 (addr=em1/00:50:c2:65:d8:e8/1,
src=00:15:17:6a:fd:0f, subaddr=1)
Feb 13 19:55:29 voip00-dgm kernel: TDMoX: No master.
Feb 13 19:55:29 voip00-dgm kernel: dahdi_netdev(dahdi at em1): existing
netgraph node ether 00:15:17:6a:fd:0f
Feb 13 19:55:29 voip00-dgm kernel: TDMoEmf: Added new interface for
DYN/ethmf/em1/00:50:c2:65:d8:e8/2 at em1 (addr=em1/00:50:c2:65:d8:e8/2,
src=00:15:17:6a:fd:0f, subaddr=2)
Feb 13 19:55:29 voip00-dgm kernel: TDMoX: No master.
Feb 13 19:55:29 voip00-dgm kernel: dahdi_netdev(dahdi at em1): existing
netgraph node ether 00:15:17:6a:fd:0f
Feb 13 19:55:29 voip00-dgm kernel: TDMoEmf: Added new interface for
DYN/ethmf/em1/00:50:c2:65:d8:e8/3 at em1 (addr=em1/00:50:c2:65:d8:e8/3,
src=00:15:17:6a:fd:0f, subaddr=3)
Feb 13 19:55:29 voip00-dgm kernel: TDMoX: New master:
DYN/ethmf/em1/00:50:c2:65:d8:e8/3
Feb 13 19:55:29 voip00-dgm kernel: dahdi: Registered tone zone 0 (United
States / North America)
Feb 13 19:55:29 voip00-dgm kernel: dahdi_netdev(dahdi at em1): interface up
Feb 13 19:55:29 voip00-dgm kernel: em1: link state changed to UP
Feb 13 19:55:30 voip00-dgm kernel: TDMoX: No master.
Feb 13 19:55:30 voip00-dgm kernel: em0: link state changed to UP
Feb 13 19:55:34 voip00-dgm kernel: All TDMoE multiframe span groups are
active.

Agora que reconhece a interface, o dahdi_tool está ficando alarmado em
[RED], estou testando em casa, mas agora já tenho bem motivação pra
continuar a depurar.

Vlw mesmo.

 /boot/loader.conf
>
> ng_ether_load="YES"
> ng_ether_echo_load="YES"
>
>
> /usr/local/etc/dahdi/system.conf
>
> dynamic=eth,bce1/00:19:46:0a:02:c2,36,1
> dynamic=eth,bce1/00:19:46:0a:a2:c0,36,1
>>
> Até parece mais estável que em ambientes com Linux.
>
>
> ------
>
> Att.
>
> Matheus Cucoloto
>
> -------------------------
> Histórico: http://www.fug.com.br/historico/html/freebsd/
> Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd
>



-- 
____________________________________________
Thiago Rocha
Network Administrator
FreeBSD: The Power to Serve!


Mais detalhes sobre a lista de discussão freebsd