Technical Helpweb

Dialogic® Diva® Service Release for Linux

Asterisk and Diva Service Release for Linux

How to use Dialogic® Diva® Media Boards in an Asterisk® Environment

Please note: Whilst Dialogic can offer support on the Dialogic-specific parts of the installation, if your problem is more general, such as being unable to compile Asterisk or compile chan_capi, we recommend you contact the support forum for that particular package.

Asterisk and Diva Server for Linux

The following instructions relate to the previous version of Diva software for Linux, called 'Diva Server for Linux'.

Follow the instructions below in order to use a Diva Server card with Asterisk using Diva Server for Linux software.

1. Download the latest drivers for your system from the Dialogic website. The best way is to download the latest source driver of Diva Driver for Linux. This is available from the Dialogic® Diva® System Release for Linux page.

This code is suitable for all kernel versions including 2.6.X, and is suitable for all Diva Server cards.

Ensure that you do not have the ISDN4Linux driver or the HiSax driver installed.

2. Follow the Install from Source procedure to build the driver.

3. Follow the Configuration procedure. Make sure that as part of the configuration you specify that you want to use the CAPI Interface.

4. After installing your card, you then need to install the chan_capi driver from ftp://ftp.chan-capi.org. This will require that you have a file called capi20.h available on the system. Therefore, install the isdn4k-utils-devel package on your system.

5. Edit capi.conf. The following example shows a system with two cards installed - a Diva Server PRI-30 and a Diva Server V-Analog/8P card.

fedcore2:/root# more /etc/asterisk/capi.conf
;
; CAPI config
;
;
[general]
nationalprefix=0
internationalprefix=00
rxgain=0.8
txgain=0.8
alaw=yes

[PRI30M]

;Define CAPI Controller Interface for PRI-30
;mode=immediate
isdnmode=DID
ntmode=yes;
incomingmsn=*
controller=2
softdtmf=0
accountcode=
context=isdn
callgroup=1
devices=30
echocancel=yes

[V-Analog8P]
;Define CAPI Controller Interface for V-Analog 8P
;mode=immediate
isdnmode=DID
ntmode=yes;
incomingmsn=*
controller=1
softdtmf=0
accountcode=
context=analog
callgroup=1
devices=2
echocancel=yes


In the extensions.conf file, you can include lines such as

exten =>_NXXXXX,1,Ringing
exten =>_NXXXXX,2,Dial(CAPI/contr2/b${EXTEN}|30)
exten =>_NXXXXX,2,Dial(CAPI/contr2/b${EXTEN})

Analog Controller for 2 Digit Extensions!
exten =>_XX,1,Ringing
exten =>_XX,2,Dial(CAPI/contr1/b${EXTEN}|30)




Feedback

Please rate the usefulness of this page:  
0 - not useful at all
1 - potentially useful
2 - quite useful
3 - very useful
4 - exactly the information I needed     

Please enter a comment about this page: