HOWTO MISDN
From Gentoo Linux Wiki
| Installation • Kernel & Hardware • Networks • Portage • Software • System • X Server • Gaming • Non-x86 • Emulators • Misc |
Contents |
[edit] Introduction
mISDN stands for modular ISDN. Runs at least on x86.
[edit] Configuration
You have to set the MISDN_CARDS flag in your /etc/make.conf to specify your ISDN-Card:
- avmfritz - For AVM Fritz!Cards
- hfcpci - For HFC PCI cards
- hfcmulti - For HFC multiport cards (HFC-4S/8S/E1)
- hfcsusb - For HFC-S USB based TAs
- sedlfax - For Sedlbauer Speedfax+
- w6692pci - For Winbond 6692 based cards
# 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 |
[edit] 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 |
[edit] 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? |
[edit] 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}'`
[edit] 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.
[edit] 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
