r9 - 22 Aug 2006 - 18:31:29 - IuriDinizYou are here: TWiki >  Asterisk Web  >  AsteriskPBXSoftware > AsteriskUnicall

Se quiser um tutorial completo e testado por RodrigoSertori, veja aqui TutorialAsteriskUnicallFax

Asterisk Unicall

Suporte a Unicall para o asterisk (MFC R2, sinalização R2)

Compilando

http://www.soft-switch.org/

Instalar dependências

apt-get install libtiff-dev
 apt-get install libxml2-dev

Baixar pacotes.

mkdir unicall
 wget http://www.soft-switch.org/downloads/spandsp/spandsp-0.0.3pre6/spandsp-0.0.3pre6.tar.gz
 wget http://www.soft-switch.org/downloads/unicall/unicall-0.0.3pre8/libmfcr2-0.0.3.tar.gz
 wget http://www.soft-switch.org/downloads/unicall/unicall-0.0.3pre8/libsupertone-0.0.2.tar.gz
 wget http://www.soft-switch.org/downloads/unicall/unicall-0.0.3pre8/libunicall-0.0.3.tar.gz

Compilar tudo

# spandsp
 tar xvzf spandsp-0.0.3pre6.tar.gz
 cd spandsp-0.0.3
./configure
 make
 make install

# libsupertone
 cd ..
tar xvzf ibsupertone-0.0.2.tar.gz
 cd libsupertone-0.0.2
./configure 
make 
make install

# libunicall
 cd ..
tar xvzf libunicall-0.0.3.tar.gz
 cd libunicall-0.0.3
./configure
 make 
make install

# libmfcr2
 cd ..
tar xvzf libmfcr2-0.0.3.tar.gz
 cd libmfcr2-0.0.3
./configure
 make
 make install

ERRO
libtool: link: only absolute run-paths are allowed
Por algum motivo (bug?) ao compilar sem especificar '--prefix' dá este erro, para corrigir:

./configure --prefix=/usr/local

Compilar channel unicall (chan_unicall.so)

va para o diretorio do asterisk/channels (fontes do asterisk)
# asterisk 1.2.1
 cd asterisk-1.2.1/channels
 wget http://www.soft-switch.org/downloads/unicall/unicall-0.0.3pre8/asterisk-1.1.x/chan_unicall.c
 cp Makefile Makefile.bkp

abra o arquivo Makefile e adicione as linhas no final dele

chan_unicall.o: chan_unicall.c
   $(CC) -c $(CFLAGS) -o chan_unicall.o chan_unicall.c

chan_unicall.so: chan_unicall.o
   $(CC) $(SOLINK) -o $@ $< -lunicall -lxml2 -lsupertone -lspandsp -ltiff $(ZAPLIB)

procure pela linha:

CHANNEL_LIBS=chan_sip.so chan_agent.so chan_mgcp.so chan_iax2.so chan_local.so chan_skinny.so chan_features.so

altere para:

CHANNEL_LIBS=chan_sip.so chan_agent.so chan_mgcp.so chan_iax2.so chan_local.so chan_skinny.so chan_features.so chan_unicall.so

volte para o diretorio raiz das fontes do asterisk e compile

cd ..
make

copiar a chan_unicall.so

cp channels/chan_unicall.so /usr/lib/asterisk/modules/

Exemplo de unicall.conf

va para /etc/asterisk e pegue o unicall.conf
wget http://www.soft-switch.org/downloads/unicall/unicall-0.0.3pre8/asterisk-1.1.x/unicall.conf.sample -O /etc/asterisk/unicall.conf

Configurando o /etc/zaptel.conf

###################
span=2,1,0,cas,hdb3,yellow
 cas=32-46:1101
 dchan=47
 cas=48-62:1101

Erros

loader.c:325 __load_resource: libunicall.so.0: cannot open shared object file: No such file or directory

Comentários

Comentário de Rodrigo Sertori:

"Testei e funciona normal.
Exatamente como segue o tutorial no site.
Atencao para loglevel se deixar mto alto rola toda a sinalizacao pelo
console do asterisk."

Obrigado Rodrigo.

Rodrigo fez ele mesmo um tutorial confira aqui: TutorialAsteriskUnicallFax

-- IuriDiniz - 01 Feb 2006

AsteriskForm
Classificacao Documentacao
Resumo Sinalizacao MFC R2 na placas Digium
Versao Asterisk 1.2.X
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r9 < r8 < r7 < r6 < r5 | More topic actions
Asterisk.AsteriskUnicall moved from Personal.AsteriskUnicall on 08 Mar 2006 - 18:24 by IuriDiniz - put it back
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback