Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen Revision Vorhergehende Überarbeitung | |||
voip:asterisk:isdn [08.03.2011 13:40. ] – [Konfiguration] django | voip:asterisk:isdn [31.10.2023 18:48. ] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
+ | ====== Asterisk Anbindung ans ISDN ====== | ||
+ | |||
+ | {{voip: | ||
+ | \\ | ||
+ | Da wir mit unserem Asterisk nicht nur // | ||
+ | ===== Installation ===== | ||
+ | Dank des [[voip: | ||
+ | Wir installieren uns also die folgenden Pakete: **asterisk16-misdn**, | ||
+ | # yum install asterisk16-misdn mISDN mISDNuser kmod-mISDN | ||
+ | Was uns die Pakete alles mitbringt, offenbart uns jeweils der Aufruf von **rpm -iql** *PAKETNAME*. | ||
+ | ==== asterisk16-misdn ==== | ||
+ | # rpm -iql asterisk16-misdn | ||
+ | < | ||
+ | Version | ||
+ | Release | ||
+ | Install Date: Mo 12 Apr 2010 20:21:32 CEST Build Host: localhost.localdomain | ||
+ | Group : Utilities/ | ||
+ | Size : 1007659 | ||
+ | Signature | ||
+ | Packager | ||
+ | URL : https:// | ||
+ | Summary | ||
+ | Description : | ||
+ | mISDN channel driver for Asterisk | ||
+ | / | ||
+ | ==== misdn ==== | ||
+ | # rpm -iql mISDN | ||
+ | < | ||
+ | Version | ||
+ | Release | ||
+ | Install Date: Mo 12 Apr 2010 20:21:31 CEST Build Host: localhost.localdomain | ||
+ | Group : Utilities/ | ||
+ | Size : 65785 License: GPL | ||
+ | Signature | ||
+ | Packager | ||
+ | URL : https:// | ||
+ | Summary | ||
+ | Description : | ||
+ | The mISDN project | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ==== mISDNuser ==== | ||
+ | # rpm -iql mISDNuser | ||
+ | < | ||
+ | Version | ||
+ | Release | ||
+ | Install Date: Mo 12 Apr 2010 20:21:10 CEST Build Host: localhost.localdomain | ||
+ | Group : Utilities/ | ||
+ | Size : 859322 | ||
+ | Signature | ||
+ | Packager | ||
+ | URL : https:// | ||
+ | Summary | ||
+ | Description : | ||
+ | The open source mISDNuser project | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ==== kmod-mISDN ==== | ||
+ | # rpm -iql kmod-mISDN | ||
+ | < | ||
+ | Version | ||
+ | Release | ||
+ | Install Date: Mo 12 Apr 2010 20:21:06 CEST Build Host: localhost.localdomain | ||
+ | Group : System Environment/ | ||
+ | Size : 8450722 | ||
+ | Signature | ||
+ | Packager | ||
+ | URL : https:// | ||
+ | Summary | ||
+ | Description : | ||
+ | This package provides the mISDN kernel modules built for the Linux | ||
+ | kernel 2.6.18-164.15.1.el5 for the i686 family of processors. | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | / | ||
+ | ===== Konfiguration ===== | ||
+ | Als erstes suchen wir nach unserer/ | ||
+ | # service mISDN scan | ||
+ | < | ||
+ | >> avmfritz</ | ||
+ | Als nächstes legen wir die Konfigurationsdatei für mISDN unter // | ||
+ | # service mISDN config | ||
+ | < | ||
+ | >> avmfritz</ | ||
+ | Mit Hilfe des vorgenannten Aufrufes wird automatisch die Konfigurationsdatei angelegt. | ||
+ | <code xml > | ||
+ | <?xml version=" | ||
+ | <!-- | ||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | Card Type: BN2S0, BN4S0, BN8S0 | ||
+ | Card Attributes: ulaw=(yes|no), | ||
+ | | ||
+ | | ||
+ | Port Attributes: mode=(te|nt), | ||
+ | | ||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | Card Type: BN2E1 | ||
+ | Card Attributes: ulaw=(yes|no), | ||
+ | | ||
+ | | ||
+ | Port Attributes: mode=(te|nt), | ||
+ | | ||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | Card Type: hfcmulti, avmfritz, w6692pci | ||
+ | Port Attributes: mode=(te|nt), | ||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | Module: hfcmulti | ||
+ | Options: poll=< | ||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | Module: hfcsusb | ||
+ | Options: debug=< | ||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | Module: xhfc | ||
+ | Options: debug=< | ||
+ | Port Attributes: mode=(te|nt), | ||
+ | | ||
+ | | ||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | Module: mISDN_dsp | ||
+ | Options: debug=< | ||
+ | | ||
+ | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - | ||
+ | --> | ||
+ | < | ||
+ | <module poll=" | ||
+ | <module debug=" | ||
+ | <devnode user=" | ||
+ | <card type=" | ||
+ | <port mode=" | ||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | ===== mISDN Daemon starten ===== | ||
+ | ==== erster Programmstart ==== | ||
+ | Zum Laden der Kernelmodule und zum Starten des **mISDN**-Daemon erfolgt mit: | ||
+ | # service mISDN start | ||
+ | < | ||
+ | >> / | ||
+ | >> / | ||
+ | >> / | ||
+ | >> / | ||
+ | >> / | ||
+ | >> / | ||
+ | >> / | ||
+ | >> / | ||
+ | creating device node: / | ||
+ | Der Start wird uns im **syslog** entsprechend positiv vermerkt. | ||
+ | < | ||
+ | Apr 12 21:09:28 office kernel: capifs: Rev 1.1.2.3 | ||
+ | Apr 12 21:09:28 office kernel: capi20: Rev 1.1.2.7: started up with major 68 (middleware+capifs) | ||
+ | Apr 12 21:09:28 office kernel: Modular ISDN Stack core version (1_1_7_2) revision ($Revision: 1.40 $) | ||
+ | Apr 12 21:09:28 office kernel: ISDN L1 driver version 1.20 | ||
+ | Apr 12 21:09:28 office kernel: ISDN L2 driver version 1.32 | ||
+ | Apr 12 21:09:28 office kernel: mISDN: DSS1 Rev. 1.47 | ||
+ | Apr 12 21:09:28 office kernel: mISDN Capi 2.0 driver file version 1.21 | ||
+ | Apr 12 21:09:28 office kernel: ISAC module $Revision: 1.18 $ | ||
+ | Apr 12 21:09:28 office kernel: AVM Fritz PCI/PnP driver Rev. 1.43 | ||
+ | Apr 12 21:09:28 office kernel: ACPI: PCI Interrupt 0000: | ||
+ | Apr 12 21:09:28 office kernel: mISDN_fcpcipnp: | ||
+ | Apr 12 21:09:28 office kernel: AVM PCI V2: stat 0x243020e | ||
+ | Apr 12 21:09:28 office kernel: AVM PCI V2: Class E Rev 2 | ||
+ | Apr 12 21:09:28 office kernel: AVM PnP: HDLC version 2 | ||
+ | Apr 12 21:09:28 office kernel: mISDN: AVM Fritz!PCIv2 config irq:177 base:0xD000 | ||
+ | Apr 12 21:09:28 office kernel: AVM PCI/PnP: reset | ||
+ | Apr 12 21:09:28 office kernel: AVM PCI/PnP: S0/S1 40/2 | ||
+ | Apr 12 21:09:28 office kernel: mISDN_isac_init: | ||
+ | Apr 12 21:09:28 office kernel: AVM Fritz!PCI: IRQ 177 count 2 | ||
+ | Apr 12 21:09:28 office kernel: fritz 1 cards installed | ||
+ | Apr 12 21:09:28 office kernel: mISDN_dsp: Audio DSP Rev. 1.29 (debug=0x0) EchoCancellor MG2 dtmfthreshold(100) | ||
+ | Apr 12 21:09:28 office kernel: mISDN_dsp: DSP clocks every 64 samples. This equals 8 jiffies.</ | ||
+ | Mit **misdnportinfo** kann nun zum einen geprüft werden, ob die Module korrekt geladen wurden, und zum anderen die momentane Portkonfiguration ausgegeben werden: | ||
+ | # misdnportinfo | ||
+ | < | ||
+ | Port 1: TE-mode BRI S/T interface line (for phone lines) | ||
+ | -> Protocol: DSS1 (Euro ISDN) | ||
+ | -> childcnt: 2 | ||
+ | -------- | ||
+ | |||
+ | mISDN_close: | ||
+ | </ | ||
+ | |||
+ | ==== automatischer Programmstart ==== | ||
+ | Damit unser mISDN-Daemon automatisch bei jedem Systemstart starten kann ergänzen wir noch das startscript // | ||
+ | # vim / | ||
+ | < | ||
+ | # | ||
+ | # mISDN Start up mISDN subsystem | ||
+ | # | ||
+ | # chkconfig: 2345 10 90 | ||
+ | # description: | ||
+ | # | ||
+ | ### BEGIN INIT INFO | ||
+ | # Provides: $mISDN | ||
+ | ### END INIT INFO | ||
+ | |||
+ | </ | ||
+ | Der Automatische Start kann nun durch Aufruf des folgenden Befehles erreicht werden: | ||
+ | # chkconfig mISDN on | ||
+ | Ein Überprüfung ob der Dienst (Daemon) mISDN wirklich bei jedem Systemstart automatisch mit gestartet wird, kann durch folgenden Befehl erreicht werden: | ||
+ | # chkconfig --list | grep mISDN | ||
+ | mISDN 0:Aus | ||
+ | |||
+ | Wichtig ist jeweils der Schalter **on** bei den Runleveln - **3 4 5**. | ||