[AsteriskBrasil] Relato de instalacao do MFCR2 com * 1.2.5

Frederic Jean fjean em sunnetgroup.net
Sexta Março 17 13:36:56 BRT 2006


Amigos da lista,

Quis compartilhar a informacoe seguinte; instalamos com exito 
o Unicall para funcionar com Asterisk 1.2.5, veja aqui os passos.
Espero que pode ajudar alguem :- ) 

Abraços,

Frederic Jean
SunNET Brasil

---

Info:

    Telemar Digitronco E1 / 10 canais
    Placa TE110P
    Mandrake 10.1
    Placa mae Asus

Pacotes:

    Asterisk 1.2.5
    Zaptel 1.2.4
    Addons 1.2.2
    Libpri 1.2.2

    Libmfcr2 0.0.3 (http://zarzamora.com.mx/mirror/shortcuts-to-files/unicall/unicall-0.0.3pre8/)
    Libsupertone 0.0.2 (http://zarzamora.com.mx/mirror/shortcuts-to-files/unicall/unicall-0.0.3pre8/)
    Libunicall 0.0.3pre8 (http://zarzamora.com.mx/mirror/shortcuts-to-files/unicall/unicall-0.0.3pre8/)
    Spandsp 0.0.2pre20 (http://zarzamora.com.mx/mirror/shortcuts-to-files/spandsp/spandsp-0.0.2pre20/)
    chan_unicall.c (http://zarzamora.com.mx/mirror/shortcuts-to-files/unicall/unicall-0.0.3pre8/asterisk-1.1.x/)
    patch_1.2.patch  (http://zarzamora.com.mx/blog/files/)

Passos:

    export LD_LIBRARY_PATH=/usr/lib
    export LD_RUN_PATH=/usr/lib

    cd /usr/src/spandsp

    make clean
    ./configure -prefix=/usr
    make
    make install

    cd /usr/src/libsupertone

    make clean
    ./configure -prefix=/usr
    make
    make install

    cd /usr/src/libunicall

    make clean
    ./configure -prefix=/usr
    make
    make install

    cd /usr/src/libmfcr2

    make clean
    ./configure -prefix=/usr
    make
    make install

    cd /usr/src/zaptel

    make clean
    make linux26
    make install

    cd /usr/libpri

    make clean
    make
    make install

    cd /usr/src

    cp patch_1.2.patch chan_unicall.c /usr/src/asterisk/channels
    cd /usr/src/asterisk/channels
    patch < patch_1.2.patch

    *** depois tem que editar o Makefile e tirar os "espacios" que tem
    na frente dos ${CC) nas duas linhas que tratam do chan_unicall.c
    e colocar um "tab", somente. Se nao fazer isto, o make do Asterisk
    vai dar erro na linha 191.

    cd /usr/src/asterisk

    make clean
    make
    make install

    cd /usr/src/addons

    make clean
    make
    make install

    safe_asterisk

CLI>
Mar 17 17:23:28 WARNING[29635]: chan_unicall.c:2644 handle_uc_event: Unicall/1 event Far end unblocked
    -- Unicall/1 far unblocked
Mar 17 17:23:28 WARNING[29635]: chan_unicall.c:2644 handle_uc_event: Unicall/1 event Local end unblocked
    -- Unicall/1 local unblocked
Mar 17 17:23:28 WARNING[29635]: chan_unicall.c:2644 handle_uc_event: Unicall/2 event Far end unblocked
    -- Unicall/2 far unblocked
Mar 17 17:23:28 WARNING[29635]: chan_unicall.c:2644 handle_uc_event: Unicall/2 event Local end unblocked
    -- Unicall/2 local unblocked
Mar 17 17:23:28 WARNING[29635]: chan_unicall.c:2644 handle_uc_event: Unicall/3 event Far end unblocked
    -- Unicall/3 far unblocked
Mar 17 17:23:28 WARNING[29635]: chan_unicall.c:2644 handle_uc_event: Unicall/3 event Local end unblocked
    -- Unicall/3 local unblocked
Mar 17 17:23:28 WARNING[29635]: chan_unicall.c:2644 handle_uc_event: Unicall/4 event Far end unblocked
    -- Unicall/4 far unblocked
Mar 17 17:23:28 WARNING[29635]: chan_unicall.c:2644 handle_uc_event: Unicall/4 event Local end unblocked
    -- Unicall/4 local unblocked
Mar 17 17:23:28 WARNING[29635]: chan_unicall.c:2644 handle_uc_event: Unicall/5 event Far end unblocked
    -- Unicall/5 far unblocked
Mar 17 17:23:28 WARNING[29635]: chan_unicall.c:2644 handle_uc_event: Unicall/5 event Local end unblocked
    -- Unicall/5 local unblocked
Mar 17 17:23:28 WARNING[29635]: chan_unicall.c:2644 handle_uc_event: Unicall/6 event Far end unblocked
    -- Unicall/6 far unblocked
Mar 17 17:23:28 WARNING[29635]: chan_unicall.c:2644 handle_uc_event: Unicall/6 event Local end unblocked
    -- Unicall/6 local unblocked
Mar 17 17:23:28 WARNING[29635]: chan_unicall.c:2644 handle_uc_event: Unicall/7 event Far end unblocked
    -- Unicall/7 far unblocked
Mar 17 17:23:28 WARNING[29635]: chan_unicall.c:2644 handle_uc_event: Unicall/7 event Local end unblocked
    -- Unicall/7 local unblocked
Mar 17 17:23:28 WARNING[29635]: chan_unicall.c:2644 handle_uc_event: Unicall/8 event Far end unblocked
    -- Unicall/8 far unblocked
Mar 17 17:23:28 WARNING[29635]: chan_unicall.c:2644 handle_uc_event: Unicall/8 event Local end unblocked
    -- Unicall/8 local unblocked
Mar 17 17:23:28 WARNING[29635]: chan_unicall.c:2644 handle_uc_event: Unicall/9 event Far end unblocked
    -- Unicall/9 far unblocked
Mar 17 17:23:28 WARNING[29635]: chan_unicall.c:2644 handle_uc_event: Unicall/9 event Local end unblocked
    -- Unicall/9 local unblocked
Mar 17 17:23:28 WARNING[29635]: chan_unicall.c:2644 handle_uc_event: Unicall/10 event Far end unblocked
    -- Unicall/10 far unblocked
Mar 17 17:23:28 WARNING[29635]: chan_unicall.c:2644 handle_uc_event: Unicall/10 event Local end unblocked
    -- Unicall/10 local unblocked

--- unicall.conf:

[channels]
language=br
context=external
usecallerid=yes
hidecallerid=no
restrictcid=no
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=no
callreturn=no
echocancel=yes
echocancelwhenbridged=yes
echotraining=yes
echotraining=800
relaxdtmf=yes
rxgain=0.0
txgain=0.0
callgroup=1
pickupgroup=1
immediate=no
callerid=asreceived
amaflags=default
accountcode=line-E1
faxdetect=no
musiconhold=default

protocolclass=mfcr2
protocolvariant=br,10,4
protocolend=cpe
group=1
channel => 1-10


--- zaptel.conf

span=1,1,0,cas,hdb3
cas=1-15:1101
dchan=16
cas=17-31:1101
defaultzone=us
loadzone=us

--- extensions.conf

[globals]
UNI-E1 => Unicall/g1

[external]
exten => 9300,1,SetLanguage(br)    ; *** o E1 joga no ramal 9300, e config da Telemar
exten => 9300,2,Goto(URA,s,1)

[URA]
...

[local]
exten => _3XXXXXXX,1,Dial(${UNI-E1}/${EXTEN},60)
exten => _4XXXXXXX,1,Dial(${UNI-E1}/${EXTEN},60)

-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://listas.asteriskbrasil.org/pipermail/asteriskbrasil/attachments/20060317/8c37d7ff/attachment.html


Mais detalhes sobre a lista de discussão AsteriskBrasil