Search:  
Gentoo Wiki

HOWTO_MISDN


This article is part of the HOWTO series.
Installation Kernel & Hardware Networks Portage Software System X Server Gaming Non-x86 Emulators Misc

Contents

Introduction

mISDN stands for modular ISDN. Runs at least on x86.

Configuration

You have to set the MISDN_CARDS flag in your /etc/make.conf to specify your ISDN-Card:

# emerge -va misdn

Kernel:

File: Kernel .config
CONFIG_ISDN_BOOL=y
CONFIG_ISDN_CAPI=m
CONFIG_ISDN_DRV_AVMB1_VERBOSE_REASON=y
CONFIG_ISDN_CAPI_MIDDLEWARE=y
CONFIG_ISDN_CAPI_CAPI20=m
CONFIG_ISDN_CAPI_CAPIFS_BOOL=y
CONFIG_ISDN_CAPI_CAPIFS=m

capi4k-utils & ppp

# emerge -va ppp capi4k-utils

Set up your capi.conf with the correct driver taken from HOWTO ISDN

# /etc/init.d/capi start

Edit /etc/ppp/peers/isdn/<your provider>

File: /etc/ppp/peers/isdn/provider
sync
noauth
user <username>
plugin userpass.so
password <password>
defaultroute
usepeerdns
plugin capiplugin.so
number <ISP-PHONE-NUMER>
protocol hdlc
ipcp-accept-local
ipcp-accept-remote
multilink
mrru 1500
endpoint magic:4711
/dev/null

Establish a connection

# pppd call isdn/<your provider>

testing with:

Code: ps aux | grep pppd

if there's something like:

<PID> capi/0   S      0:00 pppd call isdn/arcor

then you're connected, if you get something like:

<PID> ?   S      0:00 pppd call isdn/arcor

your're not connected. Did something wrong?

Channelbundeling

For Channel-bundeling you have to do the `pppd call` twice.

# pppd call isdn/<your provider>
# pppd call isdn/<your provider>

You'll get something like

<PID> capi/0   S      0:00 pppd call isdn/arcor
<PID> capi/1   S      0:00 pppd call isdn/arcor

You can kill the 2nd line by

kill -9 `ps aux | grep pppd | grep capi/1 | awk '{print $1}'`

Troubleshooting

If you are using the hfcsusb driver and get an error like:

capiinfo
capi not installed - No such device or address (6)

You may try to edit /etc/misdn-init.conf and replace te_ptmp=1 with te_capi_ptmp=1 then

/etc/init.d/capi stop
modprobe -r hfcsusb
/etc/init.d/capi start

The output of the initscript should have changed and capiinfo should give you a positive answer this time.

asterisk / chan_misdn

to link the asterisk PBX to with ISDN TE/NT stacks, you have to emerge

emerge -va net-dialup/misdnuser net-misc/asterisk net-misc/asterisk-chan_misdn

Note: USE_FLAGS "bri" for asterisk will enable bristuff support to libpri, which is not necessary for chan_misdn.

configure your /etc/asterisk/misdn.conf and /etc/asterisk/extensions.conf For configuration details on chan_misdn, please visit

Retrieved from "http://www.gentoo-wiki.info/HOWTO_MISDN"

Last modified: Mon, 01 Sep 2008 00:05:00 +0000 Hits: 12,592