• News
  • Idefisk
  • Tools
  • Tutorials
  • Forum
  • Reviews
  • VoIP Providers
  • Archives
  • Gallery
ZOIPER SIP softphone
Back to Tutorials

4.2. Asterisk and the BRI Cards - types and useful information

1. Introduction:

Basic rate interface (BRI, 2B+D, 2B1D) is an Integrated Services Digital Network (ISDN) channel consisting of two 64 kbit/s "bearer" (B) channels and one 16 kbit/s "delta" (D) channel. The B channels are used for voice or user data, and the D channel is used for control and signalling and/or X.25 packet networking. The two B channels can be bonded together giving a total data rate of 128 kbit/s.

2. Different approaches / channel drivers

There are 4 ways to get BRI cards to work with asterisk:

- The first one is by using chan_mISDN (requires mISDN kernel patches)

- The second one is by using chan_capi (requires "bristuff")

- The third one is by using chan_modem_i4l (requires i4l)
This is an old and deprecated way of interfacing with the BRI card (not recommended.)

- The forth one is for sirrix cards only and uses the sirrix channel driver

- the 5th is ZAPHFC (requires "bristuff"), this is only for cards with the HFC (cologne) chipset - and only those cards sold on junghanns.net (works on others too, but then it needs some minor patching). Please note that using bristuff breaks PRI support, so you cant have both bri and pri in the same server.

- the 6th is vISDN, only for cards with the HFC (cologne) chipset.

3. Things you should know before starting

3.1.: Difference between active and passive cards:

Cards can come in different versions: passive, semi-active, active. Active cards handle the D-channel and B-channel protocol in their hardware, whereas (cheaper) Passive cards do this in software.

Active cards usually need a special driver, (although there are some generic drivers available on linux nowadays), passive cards are mostly based on a few popular chipsets, this way one driver will fit many cards.

The big difference is the CPU load the card is causing on the server.
Still 1 or more passive cards could be used in a 386 or 486.
Active cards might also have on board echo cancellation whereas passive cards might or might not be able to do echo cancellation and if they can do it, it has to be done by the driver, taking up a lot of cpu resources of the server.

Another big difference between active and passive ISDN cards is in working on Point to Point (P2P) (see below) configured lines.
A passive card like the AVM Fritz PCI cant' work on P2P configured lines.

There is no real definition for "semi-active" cards, probably they handle the B-channel protocol in hardware with a special DSP, and leave the D-channel for the servers CPU.


3.2.: Difference between NT, NT mode and TE mode.:

- NT:
NT is the abbreviation of network terminator. This is the interface between an ISDN user and the ISDN provider. It is a small hardware box to which the user has to connect his ISDN devices via a so called S0 interface. In most European countries, the ISDN provider supplies the NT. A user in North America usually has to buy one, therefore the NT is often integrated into the ISDN card there.

- NT mode:
When multiple devices are connected to the ISDN connection, then all user device behave as slaves, where the network terminator (NT) behaves as master and synchronizes the communication on the S0 bus. The special behavior of the network terminator is called NT mode. User devices are normally not capable of running in NT mode. As a result, user devices can not communicate with each other even when they are connected via a crossed cable. Only some special ISDN cards (HFC chipset) are capable of running in NT mode, and can directly communicate with other ISDN user devices via a crossed cable.

NT mode is only supported by the mISDN, zaphfc, vISDN and the sirrix channel drivers. You will need NT mode if you want to connect your asterisk server to a PBX and the pbx cannot be put into NT mode.

* update: according to a certain pif on #asterisk, chan_capi can do NT mode, and isdn phones can connect to it. *


- TE mode:

TE is the abbreviation for Terminal Equipment, an ISDN telephone is an example of this, although a PBX could also be configured to be in TE mode.

Generally if you need to connect to ISDN phones, the pbx will need to use NT mode, if you want to connect 2 PBX'es, one of them will need to be in TE mode and one in NT mode.


3.3.: Difference between p2p and p2mp mode.:

Your ISDN interface can be configured either in multi-device (p2mp) mode, or in point-to-point (p2) mode.

- p2mp
The multi-device mode is the normal connection mode for private ISDN users or very small business users. The user can attach multiple devices to the ISDN connection. The ISDN provider will assign a small number of fixed telephone numbers (usually up to 10 MSN), if any, to the ISDN connection.

- p2p
The point-to-point mode is the normal connection mode for business ISDN users. The user can attach only one single devices to the ISDN connection which will have to handle all calls (typically a PBX will be used). The ISDN provider will assign a range of numbers to the ISDN connection. Any call within this number range will be sent to the user. The ISDN provider will leave assignment of the last digits of the telephone number to the ISDN user. This setup usually allows for additional features, but is also more expensive.

On a P2P line all PBX (private branch exchange, a private telephone network) functionality has to be done by a device on the users side. On a Point to Multipoint (P2MP) line, the network provider manages PBX functionality for the user.

Call your telephone provider to find out how your ISDN line is configured. Your provider can change your line from P2MP to P2P within an hour.


3.3.: MSN number.:

Unlike a normal telephone connection, an ISDN connection can have more than one telephone number - each of these is called an MSN (Multiple Subscriber Number).

This is sometimes also called a DDI or DID.


4. BRI cards known to work with asterisk

Currently digium (the main asterisk sponsor) does not make any BRI cards, vendors known to have compatible cards are:

- junghanns:
- quadBRI : HFC based 4 port BRI card
- octoBRI : HFC based 8 port BRI card

- AVM:
- fritz! pci (passive single BRI board)
- b1 PCI : 1 port active BRI card, known to work with chan_capi and chan_misdn, be sure to update the firmware here
- c2 : 2 port active BRI card, known to work with chan_capi
- c4 : 4 port active BRI card, known to work with chan_capi

- beronet:
- BN4S0 : HFC based 4 port BRI card, known to work with chan_misdn
- BN8S0 : HFC based 8 port BRI card, known to work with chan_misdn

- sirrix:
- PCI4S0: 4 port BRI card

- eicon:
- diva server BRI: active 1 port BRI card, requires kernel module: divadidd, known to work with chan_capi, voice and fax
- Diva Server V-BRI: active 1 port BRI card, requires kernel module: divadidd, known to work with chan_capi, voice only
- Diva Server 4BRI: active 4 port BRI card, requires kernel module: divadidd, known to work with chan_capi, voice and fax
- Diva Server V-4BRI: active 4 port BRI card, requires kernel module: divadidd, known to work with chan_capi, voice only

- Gazel:
- gazel 128 usb: 1 port BRI card uses hfc chipset, known to work with chan_misdn. Works on USB, so could be used on a laptop

-Digium
- Digium B410P: 4 ports BRI card. The B410P features on-board DSP-based echo cancellation and supports TE and NT mode over 4-wire S/T interface.

If you know other BRI cards that are known to work, please let us know by posting a comment to this tutorial.

5. Related tutorials:

- Read our tutorial about troubleshooting IRQ problems with asterisk interface cards
- Read our tutorial about the installation of Digium B410P
- Read our tutorial about the installation of AVM B1
- Read our tutorial about how to install chan_mISDN and how to make it working with Asterisk

6. F.A.Q.

Q: Can i install multiple AVM cards in one server?
A: Only avm active cards (b1, c2 and c4) permit multiple installation straight forward.
with fritz! pci you can do the hack described on: this site
for fritz! usb you can't install more then one.
This limitiation is due to avm drivers design, they choose to allow multiple installation only on hi-end boards.

7. References:

- BRI on wikipedia
- some ISDN
- bristuff breaks pri support

8. Related Definitions

For "Eicon Diva"

http://www.melware.de/de/index.html
http://isdn4linux.org/~armin/divas/
http://www.eicon.com/worldwide/products/WAN/cn4linux.htm
http://www.eisfair.org/fileadmin/doc/node10.html (german)

For AVM:

http://www.linux-magazin.de/Artikel/ausgabe/2000/10/Capi/capi.html

 
User Comments
James.zhu (zhulizhong at gmail dot com)
23 July 2007 09:48:50
Openvox B200P/B400P also have features to support BRI lines. it uses junghanns's driver and run under asterisk. please visit the website to get more info:www.openvox.com.cn
Regards!
dinesh sawant (dinesh_sawant at cms dot com)
08 June 2007 07:58:12
send me mail any information
juan Alvarez (juanam at hotmail dot com)
24 April 2007 18:46:38
please delete this part:

Currently digium (the main asterisk sponsor) does not make any BRI cards

since the BP410 is digium.
makis (info at f2d dot gr)
11 August 2006 02:11:46
I have a problem with my ISDN card. not always, but very often when i dial from PSTN i get the following error which causes the line to hungup unexpectly.

any help will be more than apreciated.


-- Launched AGI Script /var/lib/asterisk/agi-bin/astpp-callingcards.agi
ug 11 01:56:04 WARNING[5066]: chan_zap.c:8503 zt_pri_error: 1 !! Got reject for frame 0, retransmitting frame 0 now, updating n_r!
ug 11 01:56:04 WARNING[5066]: chan_zap.c:8503 zt_pri_error: 1 !! Got reject for frame 0, retransmitting frame 1 now, updating n_r!
-- Playing 'astpp-accountnum' (language 'gr')
ug 11 01:56:08 WARNING[5066]: chan_zap.c:8503 zt_pri_error: 1 received SETUP message for call that is not a new call (retransmission).
ug 11 01:56:10 WARNING[5066]: chan_zap.c:8503 zt_pri_error: 1 !! Got reject for frame 2, retransmitting frame 2 now, updating n_r!
ug 11 01:56:10 WARNING[5066]: chan_zap.c:8503 zt_pri_error: 1 !! Got reject for frame 2, retransmitting frame 3 now, updating n_r!
-- Channel 0/1, span 1 got hangup, cause 16
FRLS (francois at infotecsys dot be)
08 June 2006 12:20:08
Hello,

AVM active cards (B1 PCI for example)seems not to compatible with mISDN.
I can read at different place on this site that it is, so I'm a bit surprised. I work on gentoo, the only way to make these cards work is with chan_capi.

Maybe someone has more info about that.

Regards, FRLS
Eric Castelnau (eric dot castelnau at cg974 dot fr)
11 May 2006 07:05:14
Hello

I'm searching information about the new BRI card from digium (B410P) : http://www.voiptalk.org/products/pdf/b410p_datasheet.pdf

Have you already test it ?
Is there already a driver available in zaptel source ?

Regards.
Beppe (g dot spinelli at sistemiuno dot it)
26 April 2006 17:22:07
Hallo,
I have a big problem
I am Italian (please exscuse my not perfect English....!)
I have installed a server with Asterisk and a Digium card TE110P.
It works perfectly!
I want to connect a Router Cisco ISDN at my PRI
I have prepared another server with a card ISDN and bristuff patch, and I have configured an S0 bus.
This second server is registered in IAX with the first server.
I want to call from S0 bus and in IAX my call is forward to PRI by first Asterisk.
It works perfecty if I make voice calls, but it doesn't work with the router.
Is there anybody who knows how to resolve this problem?
Thank You!
Best Regards
Beppe
Marco Bruni (marcobruni04 at virgilio dot it)
21 April 2006 16:08:34
I was able to use a BILLISDNPCI (Billion) from Beronet (shop.beronet.com), a cheap 1 port passive BRI card with HFC chipset, with Asterisk 1.2.x, using the zaphfc driver and the visdn driver (the latter the better to me).

Regards.

Marco Bruni from Italy
w1zz (w1zz at users dot sourceforge dot net)
18 April 2006 14:32:33
There is an install script included in the AAH distribution (install-ZAPHFC) which will do most (if not all) of the install work for HFC cards.

Alan
Benoit (asteriskguru at exp06 dot spam dot woody dot ch)
30 March 2006 10:53:29
Be aware that the bristuffed (form ZAPHFC Support) versions only work with very outdated asterisk versions.
mISDN is a better choice, but needs a specialy patches 'jolly' mISDN version which is slightly outdated. So if you have newer Zaphfc Cards you might need to add the PCI Vendor ID manualy to the source to geht them working. This is the way I did suceeded with * 1.2.5.
I still have troubles with 'data' calls (X.75 or HDLC Sync PPP and similar) and sending User to User Text Messages. This seams broken in mISDN.
zoa (support at asteriskguru dot com)
29 March 2006 17:52:57
pri has a lot more channels than a bri. (and is a lot more expensive).

You cannot use a PRI card on a BRI line, just doesnt work.
jani (jani at cuuma dot com)
29 March 2006 17:11:37
Is It possible to use PRI card (TE410P) like normal BRI, if configured in zaptel only 2 channels and third one as a D? I mean i have ISDN router with TE or NT interface and it support BRI and i cant get it work with my PRI card. Im wondering if it is possible at all?
punit bhatt (punitkumar dot bhatt at relianceinfo dot com)
29 March 2006 11:18:26
if we can use both BRI&PRI for same application than what is the difference except speed is concern
Nico Timeo (n dot timeo at gmail dot com)
28 February 2006 17:41:53
Asterisk works fine with Eicon Diva Server V-4Bri.
Rick (rome at acs dot net dot nz)
06 December 2005 22:05:34
Works with Dynalink Winbond w9962 (tas106h/hc) card in New Zealand fine but had to manually add it to the misdn-init.conf file.
Garth van Sittert (garth at bitco dot co dot za)
14 November 2005 22:40:15
Had good success with Duxbury ISDN cards in South Africa.
Garth van Sittert
Lokesh Kumar (lokesh at interacesso dot pt)
10 August 2005 19:46:49
Hi everybody
I had installed Asterisk with BRI cards successfully, if any body needs help , then you can contact me.I can help you.
Regards
Lokesh
Portugal
Mail lokesh@interacesso.pt
zoa (support at asteriskguru dot com)
29 July 2005 12:49:24
Please ask this question on the forum, http://www.asteriskguru.com/board/
Lokesh Kumar (lokesh at interacesso dot pt)
27 July 2005 16:04:25
Well every thing is fine upto here , but i am amazed i am unable to load module for 4 port beronet card, it is giving error module not find.can any body provide help for that. I will be very thankful to you.
Lokesh
Interacesso
Portugal
 
Add Comment
Name:
Email:
Comment:
In order to prevent automatic posting on our website, we kindly request you to type in the number you see in the picture below.
Image Verification:
 

Latest Headlines:

  • T.38 faxing with Zoiper 2.15 is now easier than ever
    section: voip software
  • Asterisk 1.4.21 Released
    section: Asterisk
  • Asterisk 1.4.20 Released
    section: Asterisk
  • Asterisk 1.4.20-rc2 Released
    section: Asterisk
  • Asterisk 1.4.20-rc1 Now Available
    section: Asterisk
  • News Archives (older news)

Latest Tutorials:

  • VMAuthenticate (dialplan application)
    added 01/Mar/2008 15:57
  • Siptronic ST-530
    added 06/Nov/2007 17:57
  • Siemens C455 IP hardphone
    added 05/Nov/2007 10:24
  • Zoiper
    added 22/Oct/2007 17:53
  • Grandstream GXP-2020
    added 15/Oct/2007 18:17

Latest Comments:

  • i install asterisk in fedora core 5 and ...
    tutorial: Softphones
  • SHELL OIL MILLS<br /> 134 SAM DICKSON A...
    section: technology
  • I want landline or Mobile free call opti...
    tutorial: SJphone softphone
  • I need a information when we r installin...
    tutorial: Basic Information
  • Brand new Mobile phone Plasma tv , Lapto...
    section: technology
 
contact us at: support@asteriskguru.com - asterisKGuru.com © all rights reserved   |   *asterisk is registered trademark of © Digium™