venerdì, giugno 23, 2006

trixbox and isdn bristuffed

how to install hfc card

after unload asterisk and amportal whit
amportal stop

type "setup"
unselect zaptel in system service...
and set the lan

--->reboot<---

cd /usr/src/kernels/2.6.9-34.0.1.EL-i686/include/linux
mv spinlock.h spinlock.h.old
wget http://nerdvittles.com/trixbox/spinlock.h


--->reboot<---

cd /usr/src
wget http://www.junghanns.net/downloads/bristuff-0.3.0-PRE-1q.tar.gz
tar -zxvf bristuff-0.3.0-PRE-1q.tar.gz
cd bristuff-0.3.0-PRE-1l
./download.sh
cd zaphfc


wget dondisperato.0catch.com/zaphfc_0.3.0-PRE-1f_florz-11.diff
patch < zaphfc_0.3.0-PRE-1f_florz-11.diff
cd ..

ln -s /usr/src/kernels/2.6.9-34.EL.i686 /usr/src/linux-2.6
ln -s /usr/src/kernels/2.6.9-34.EL.i686 /usr/src/linux

cd zaptel-1.2.6
make clean
make
make install
cd ..
cd libpri-1.2.3
make clean
make
make install
cd ..
cd zaphfc
- Mostra testo tra virgolette -
make clean
make

cp zaptel.conf /etc/zaptel.conf
------>yes<-------

nano /etc/rc.d/rc.local

at first add this line:

modprobe zaptel
insmod /usr/src/bristuff-0.3.0-PRE-1q/zaphfc/zaphfc.ko
sleep 10
ztcfg -vv

nano /etc/asterisk/zapata.conf

this is my zapata:


[channels]
language=it
switchtype=euroisdn
;If you connect to a hicom PBX set your ISDN Numbering Plan Identifier to unknown.
pridialplan=local
prilocaldialplan=local


signalling = bri_cpe_ptmp
;signalling = fxs_ks
rxwink=300

usecallerid=yes
hidecallerid=no
callwaiting=yes
usecallingpres=yes
callwaitingcallerid=yes
threewaycalling=yes
transfer=yes
cancallforward=yes
callreturn=yes
echocancel=yes
echocancelwhenbridged=yes
rxgain=0.0
txgain=0.0
nationalprefix = 0
internationalprefix = 00
faxdetect=incoming
group=0
callgroup=1
pickupgroup=1
immediate=no

context=from-pstn
channel => 1-2

________________________________________
now you can recompile asterisk
cd /usr/src/bristuff-0.3.0-PRE-1q/asterisk-1.2.4
make clean
make
make install

reboot...
________________________________________


that's all
donDisperato

This page is powered by Blogger. Isn't yours?