Zaptel B410P
Click here to expand Table of Contents
All the text below was last edited in 2009, it is therefore likely out-of-date, inaccurate and in dire need of a refresh
HOW TO INSTALL DIGIUM B410P ON UBUNTU FOR FREESWITCH
At the moment FreeSWITCH does not work with the new dahdi drivers from Digium, which provides native support for the B410P (BRI) card. In order to use that card, it's necessary to install Bristuff and apply a patch:
1. Download bristuff from: http://www.junghanns.net/downloads/bristuff-0.4.0-RC3d.tar.gz and extract the files;
2. Replace qozap/qozap.c and qozap/qozap.h with the files from: http://svn.digium.com/view/zaptel/team/mattf/bri-related/
3. If using a kernel version newer than 2.6.23, replace "SA_INTERRUPT | SA_SHIRQ" at qozap.c:1630 with "IRQF_DISABLED | IRQF_SHARED";
4. Compile and install the driver:
./compile.sh -m 'qozap zaphfc'
5. Edit /etc/default/zaptel (or /etc/sysconfig/zaptel depending on your distribution) and comment all the modules, leaving only the qozap driver:
MODULES="$MODULES qozap"
6. Load the driver:
/etc/init.d/zaptel start
7. Make sure the drivers are loaded: ztcfg -vvv
8. Compile OpenZAP for FreeSWITCH and edit the following files:
conf/zt.conf:
[defaults]
codec_ms => 20
wink_ms => 150
flash_ms => 750
echo_cancel_level => 64
conf/openzap.conf:
[span zt]
trunk_type => bri
b-channel => 1-2
d-channel=> 3
[span zt]
trunk_type => bri
b-channel => 4-5
d-channel=> 6
[span zt]
trunk_type => bri
b-channel => 7-8
d-channel=> 9
[span zt]
trunk_type => bri
b-channel => 10-11
d-channel=> 12
conf/autoload_configs/openzap.conf.xml:
<configuration name="openzap.conf" description="OpenZAP Configuration">
<settings>
<param name="debug" value="0"/>
</settings>
<pri_spans>
<param name="mode" value="user"/> <param name="dialect" value="q931"/> <param name="dialplan" value="XML"/> <param name="context" value="default"/> <param name="digit-timeout" value="2000"/> <param name="max-digits" value="11"/>
<param name="mode" value="user"/> <param name="dialect" value="q931"/> <param name="dialplan" value="XML"/> <param name="context" value="default"/>
<param name="mode" value="user"/> <param name="dialect" value="q931"/> <param name="dialplan" value="XML"/> <param name="context" value="default"/>
<param name="mode" value="user"/> <param name="dialect" value="q931"/> <param name="dialplan" value="XML"/> <param name="context" value="default"/>
</pri_spans>
</configuration>