This shows you the differences between two versions of the page.
| — | project:asterisk-sarge [2018/07/25 21:30] (current) – created - external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | |||
| + | ===== Asterisk, mISDN, chan_capi and Debian Sarge HOWTO ===== | ||
| + | |||
| + | // | ||
| + | |||
| + | **//Please note that this page hasn't been updated for a while and most probably will show outdated information. It is mainly kept here for reference.// | ||
| + | |||
| + | This documents briefly describes how to get the Asterisk PBX running based on | ||
| + | a CAPI 2.0 stack on top of mISDN drivers together with a stock Debian Sarge | ||
| + | installation. | ||
| + | The focus is to use debian provided packages as much as possible. | ||
| + | |||
| + | Unfortunately latest mISDN drivers do not run with the stock debian kernel 2.6.8. | ||
| + | Therefore we first install an updated kernel from | ||
| + | [[http:// | ||
| + | |||
| + | Add backports.org sources to / | ||
| + | |||
| + | deb http:// | ||
| + | |||
| + | Deactivate packages to be fetched from backports.org by default, we will selectively choose packets from there. | ||
| + | Put in / | ||
| + | |||
| + | Package: * | ||
| + | Pin: release a=sarge-backports | ||
| + | Pin-Priority: | ||
| + | |||
| + | Install the new kernel and reboot (currently it seems to be more stable to | ||
| + | use the non-SMP kernel). | ||
| + | |||
| + | apt-get update | ||
| + | apt-get upgrade | ||
| + | apt-get -t sarge-backports install linux-image-2.6.15-1-686 | ||
| + | apt-get install linux-source-2.6.15 | ||
| + | |||
| + | Prepare the kernel sources for building mISDN: | ||
| + | |||
| + | cd / | ||
| + | tar xvpjf linux-source-2.6.15.tar.bz2 | ||
| + | ln -s linux-source-2.6.15 linux-2.6 | ||
| + | ln -s linux-2.6 linux | ||
| + | ln -s / | ||
| + | |||
| + | cd / | ||
| + | cp / | ||
| + | make oldconfig | ||
| + | echo -1-686 > .extraversion | ||
| + | |||
| + | Prepare to build mISDN modules and get the latest sources from CVS: | ||
| + | |||
| + | cd / | ||
| + | export CVSROOT=: | ||
| + | cvs login | ||
| + | cvs co -r mqueue mISDN | ||
| + | |||
| + | Now patch the kernel sources: | ||
| + | |||
| + | cd mISDN | ||
| + | ./std2kern | ||
| + | |||
| + | Activate the mISDN modules in the kernel config by making the following settings: | ||
| + | |||
| + | cd / | ||
| + | make prepare | ||
| + | |||
| + | Support modular ISDN driver (MISDN_DRV) [N/m/?] (NEW) m | ||
| + | Enable memory leak debug for mISDN (MISDN_MEMDEBUG) [N/y/?] (NEW) n | ||
| + | Support for AVM Fritz!Cards (MISDN_AVM_FRITZ) [N/y/?] (NEW) y | ||
| + | Support for HFC PCI cards (MISDN_HFCPCI) [N/y/?] (NEW) y | ||
| + | Support for HFC multiport cards (HFC-4S/ | ||
| + | HFC multiport driver with memory mapped IO (HFCMULTI_PCIMEM) [N/y/?] (NEW) y | ||
| + | Support for HFC-S USB based TAs (MISDN_HFCUSB) [N/y/?] (NEW) y | ||
| + | Support for Sedlbauer Speedfax+ (MISDN_SPEEDFAX) [N/y/?] (NEW) y | ||
| + | Support for Winbond 6692 based cards (MISDN_W6692) [N/y/?] (NEW) y | ||
| + | Digital Audio Processing of transparent data (MISDN_DSP) [N/y/?] (NEW) y | ||
| + | |||
| + | Build the mISDN modules and install them: | ||
| + | |||
| + | make scripts | ||
| + | make SUBDIRS=drivers/ | ||
| + | make SUBDIRS=drivers/ | ||
| + | |||
| + | Delete / | ||
| + | / | ||
| + | |||
| + | Therefore add to / | ||
| + | |||
| + | MISDN_MODULES=" | ||
| + | MISDN_DRIVER=" | ||
| + | |||
| + | Reboot and check for proper detection and initialization of your card: | ||
| + | |||
| + | mISDNd: kernel daemon started | ||
| + | mISDNd: test event done | ||
| + | mISDN: DSS1 Rev. 1.29.2.12 | ||
| + | mISDN_dsp: Audio DSP Rev. 1.10.2.10 (debug=0xf) | ||
| + | mISDN_dsp: DSP clocks every 64 samples. This equals 8 jiffies. | ||
| + | mISDN Capi 2.0 driver file version 1.14.2.6 | ||
| + | mISDN: HFC-PCI driver Rev. 1.39.2.16 | ||
| + | mISDN: HFC-PCI card manufacturer: | ||
| + | mISDNStackd started for id(00000100) | ||
| + | mISDNStackd started for id(10010100) | ||
| + | mISDNStackd started for id(10020100) | ||
| + | mISDN: HFC-PCI driver Rev. 1.39.2.16 | ||
| + | |||
| + | If you want to run Asterisk as a user " | ||
| + | fix the permissions on all directories and devices. | ||
| + | |||
| + | chown --recursive asterisk: | ||
| + | chown --recursive asterisk: | ||
| + | chown --recursive asterisk: | ||
| + | chown --recursive asterisk: | ||
| + | chown --recursive asterisk: | ||
| + | chmod --recursive u=rwX, | ||
| + | chmod --recursive u=rwX, | ||
| + | chmod --recursive u=rwX, | ||
| + | chmod --recursive u=rwX, | ||
| + | chmod --recursive u=rwX, | ||
| + | |||
| + | chown --recursive root: | ||
| + | chmod --recursive u=rwX, | ||
| + | |||
| + | Your ISDN cards are defined in / | ||
| + | configuration for two HFC-based cards. | ||
| + | The first card is running in TE-mode (for connecting to the ISDN provider), | ||
| + | the second one in NT-mode (for connecting phones). | ||
| + | |||
| + | # | ||
| + | # Configuration file for your misdn hardware | ||
| + | # | ||
| + | # Usage: / | ||
| + | # | ||
| + | # | ||
| + | # Card Settings | ||
| + | # | ||
| + | # Syntax: card=< | ||
| + | # | ||
| + | # < | ||
| + | # < | ||
| + | # or the name of your card driver module. | ||
| + | # < | ||
| + | # | ||
| + | # | ||
| + | # | ||
| + | card=1, | ||
| + | card=2, | ||
| + | | ||
| + | Avoid HiSax modules from being loaded. To achieve this, add the following | ||
| + | lines to / | ||
| + | |||
| + | hisax | ||
| + | hisax_fcpcipnp | ||
| + | |||
| + | Get the latest chan_capi from http:// | ||
| + | versions bristuffed asterisk packages will include chan_capi but currently this | ||
| + | is not working properly. | ||
| + | |||
| + | apt-get install capiutils libcapi20-dev | ||
| + | cd / | ||
| + | tar xvpzf chan_capi-cm-0.6.3.tar.gz | ||
| + | cd chan-capi | ||
| + | make | ||
| + | make install | ||
| + | |||
| + | Do not forget to edit / | ||
| + | Check for correctly loaded capi within asterisk: | ||
| + | |||
| + | asterisk -r | ||
| + | capi info | ||
| + | |||
| + | Now you should be done :) In case you have any additions of corrections to this howto, | ||
| + | feel free to contact me! | ||
| + | |||
| + | |||
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International