Synopsis
BRIstuff is a set of patches and BRI drivers, along with automated download and patching scripts for Asterisk, Zaptel and Libpri, provided and maintained by Klaus Peter Junghanns of Junghanns GmbH. After the patches have been applied, Asterisk can use BRI telephony interface cards from Junghanns (and other such cards based on the HFC chip sets from Cologne Chip AG) through the Zaptel channel driver interface (chan_zap).Page Contents
Official website
- http://www.junghanns.net
- http://bristuff.org - the new wiki
Mailing List
- Unofficial Bristuff-users mailing list: http://lists.three-dimensional.net/mailman/listinfo/bristuff-users
Latest releases
- Asterisk 1.0: bristuff-0.2.0-RC8s.tar.gz
- Asterisk 1.2: bristuff-0.3.0-PRE-1y-g.tar.gz
- Asterisk 1.4: bristuff-0.4.0-test1.tar.gz
Features:
- Improved ISDN stack
- Support for ISDN/BRI in Asterisk ZAP channels
- That also includes Asterisk zaphfc: support for many simple ISDN cards that use the Cologne HFC-s chipset
- And some other cards or Junghanns (quad- and octo-BRI and single and dual E1).
- Latest versions include Asterisk CAPI Channels
- Many small goodies (e.g: app_devstate)
Also part of http://www.debian.org Asterisk packages. Note that you need the package asterisk-bristuff inthe latest packages (>=1.2.4 )
(Still misses libgsmat).
Components
Bristuff is essentially a distibution of Asterisk with many modifications. It has an install script that downloads some specific versions of Zaptel, libpri and Asterisk, patches them and installs them.The files/directories in recent bristuff:
- CHANGES: A useful changelog.
- INSTALL: installation instrucructions.
- cwain: Channel Without An Interesting Name. Zaptel driver for the Junghanns E1 adapters. Does it work with standard Zaptel? Unlike others this really is what the name stands for.
- compile.sh, install.sh: scrits to just compile or download and install everything. See INSTALL above.
- ISDNGuard: Some extra software for the Junghanns ISDNGuard ISDN failover switch.
- libgsmat-0.0.1: A ((libpri)-like library to control Junghann's GSM module.
- patches: the patches that are to be applied to zaptel (a small one) libpri and asterisk (huge ones).
- qozap: Zaptel drivers for the Junghanns quadBRI and octoBRI cards. Requires Zaptel patched with the zpatel patch above.
- SAMPLES: examples of zapata.conf and extensions.conf for more practical scenarios.
- TESTING: currently just one subdirectory: realzap: a kernel driver to get zaptel timing from RTAI.
- zaphfc: Zaptel driver for PCI ISDN adapters based on the common Cologne HFC-s chip. As with qozap, requires Zaptel patched with the zpatel patch above.
- ztgsm: Zaptel driver for the Junghanns GSM adapter. Seems to require a patched Zaptel as well. Requires Asterisk patched with the Asterisk patch above, and libgsmat from above.
Downloads
Known Issues
Zaptel Kernel Link
Incorrectly edits the /usr/src symlinks instead of using the build link. (elaborate)Broken Drivers
- Before unloading qozap, be sure to run 'ztcfg -s' (versions??). Acknowledged by Junghanns.
- Rumor has it that qozap later than bristuff 0.3.0-PRE1-s is broken. (Update: I have found qozap from 0.3.0-PRE-1w appears to be fairly stable in both TE and NT mode.)
Usefulness
Interface Compatibility
I noticed that too often the Asterisk bristuff patch changes interfaces in Asterisk. This means I can't simply lift the good partsof it and use them in my own Asterisk.chan_capi-cm
About two years ago, some people formed chan_capi-cm based on the code of chan_capi from Junghanns. It seems that chan_capi-cm is more developed. I wonder why the Junghanns version is still maintained.zaphfc alternatives
ZapHFC seems to be underdeveloped (heck, Junghanns don't make money on it). There seem to be two alternative zaphfc driovers:- The Flortz patch - A patch to the zaphfc driver. Mainly deals with multiple HFC-s cards in a single box.
- vzaphfc: A much improved zaphfc driver. For some strange reason it is currently availble only through the Debian Zaptel package or the Unofficial homepage
Page Changes
Hangup problem and solution
I had problems with call Hangup on asterisk side.
On some lines, when call is hangup from asterisks side PSTN don't detect hangup! Only silence on phone but phone display - call is active.
I wasted one week to solve this problem...
Solution:
It looks like for some telecoms is required to set hangup cause(PRI_CAUSE) before hangup.
I changed dialplan to:
exten => my extension,1,Set(PRI_CAUSE=17)
exten => my extension,2,Hangup
And now incoming number my extension is always correct busy!
Hangup problem and solution
I had problems with call Hangup on asterisk side.
On some lines, when call is hangup from asterisks side PSTN don't detect hangup! Only silence on phone but phone display - call is active.
I wasted one week to solve this problem...
Solution:
It looks like for some telecoms is required to set hangup cause(PRI_CAUSE) before hangup.
I changed dialplan to:
exten => my extension,1,Set(PRI_CAUSE=17)
exten => my extension,2,Hangup
And now incoming number my extension is always correct busy!
it is very stable to support Openvox B200P/B400P