[asterisk-users] Dahdi > CAPI migration

Patrick Laimbock patrick at laimbock.com
Mon Aug 11 17:28:16 CDT 2014


On 11-08-14 11:09, Toney Mareo wrote:
>
>   Hello
>
> The answers to your questions are:
>
> 1, OS
> CentOS release 5.5 (Final)

That version is ancient and full of security holes. It is recommended to 
at least update to CentOS 5.10 + updates. That's assuming there are 
Trixbox kmod-dahdi-linux* RPMs for CentOS 5.10.

> Trixbox installed at: Autogenerated by /usr/sbin/dahdi_genconf on Fri Nov 25 18:03:26 2011

Trixbox CE no longer exists and is no longer supported. Why continue 
using it?

> 2, Kernel
> Linux 2.6.18-164.11.1.el5xen #1 SMP Wed Jan 20 08:53:10 EST 2010 i686 i686 i386 GNU/Linux
>
> 3, Packages
>
> asterisk16-dahdi.i386                    1.6.0.26-1_trixbox            installed
> dahdi-firmware.noarch                    2.0.0-1_centos5               installed
> dahdi-firmware-oct6114-064.noarch        1.05.01-1_centos5             installed
> dahdi-firmware-oct6114-128.noarch        1.05.01-1_centos5             installed
> dahdi-firmware-tc400m.noarch             MR6.12-1_centos5              installed
> dahdi-firmware-vpmadt032.noarch          1.07-1_centos5                installed
> dahdi-linux.i386                         2.3.0.1-1_trixbox             installed
> dahdi-tools.i386                         2.3.0-1_trixbox               installed
> dahdi-tools-doc.i386                     2.2.0-4_trixbox               installed
> kmod-dahdi-linux.i686                    2.3.0.1-1_trixbox.2.6.18_164.11.1.el5
> kmod-dahdi-linux-xen.i686                2.3.0.1-1_trixbox.2.6.18_164.11.1.el5
> dahdi-linux-devel.i386                   2.3.0.1-1_trixbox             trixbox28
> kmod-dahdi-linux-PAE.i686                2.3.0.1-1_trixbox.2.6.18_164.11.1.el5
> libpri.i386                              1.4.10.2-1_centos5            installed
> libpri-devel.i386                        1.4.10.2-1_centos5            trixbox28
> asterisk16.i386                          1.6.0.26-1_trixbox            installed
> kmod-mISDN.i686                          1.1.7.2-4_centos5.2.6.18_164.11.1.el5
> kmod-mISDN-xen.i686                      1.1.7.2-3_centos5.2.6.18_164.11.1.el5
> mISDN.i386                               1.1.7.2-4_centos5             installed
> mISDNuser.i386                           1.1.7.2-2_centos5             installed
> asterisk-chan_misdn.i386                 1.4.22-3                      trixbox
> kmod-mISDN-PAE.i686                      1.1.7.2-3_centos5.2.6.18_164.11.1.el5
> mISDN.i686                               1.1.7-27                      trixbox
> mISDN-debuginfo.i686                     1.1.7-24                      trixboxaddons
> mISDN-devel.i686                         1.1.7-27                      trixbox
> mISDN-devel.i386                         1.1.7.2-4_centos5             trixbox28
> mISDN-kmod-base.i686                     1.1.7.2-1_centos5.2.6.18_128.1.10.el5
> mISDN-modules.i686                       1.1.7-27.2.6.18_92.1.18.el5   trixbox
> mISDNuser-debuginfo.i386                 1.1.7-15                      trixboxaddons
> mISDNuser-devel.i386                     1.1.7.2-2_centos5             trixbox28

All ancient, with many (security) bugs and no longer supported.

> Asterisk 1.6.0.26-FONCORE-r78, Copyright (C) 1999 - 2010 Digium, Inc. and others.
>
> 4, What do you mean with "the OS-es were clones ..."? Did you create an
> image of the old Trixbox machine and installed that on the new machine?
>
> It means that they are Xen virtual machines, exact bit by bit vm clones so they should have all the same configuration files, run the exact same Xen kernels. What complicates things a bit, and probably the cause of my errors is Xen's PCI passthrough. The only reason why I use something so obsolete like Xen is just this feature otherwise I would be using kvm, vmware, virtualbox or whatever virt technologies but for those you must have vt(d) hardware support and the machine I dealing with here doesn't have this, neither the old one.

Right.

> 5, Lsdadhi (this is on the first, working machine)
>
> ### Span  1: B4/0/1 "B4XXP (PCI) Card 0 Span 1" (MASTER) AMI/CCS
>    1 BRI        Clear       (In use) (SWEC: MG2)
>    2 BRI        Clear       (In use) (SWEC: MG2)
>    3 BRI        Hardware-assisted HDLC  (In use)
> ### Span  2: B4/0/2 "B4XXP (PCI) Card 0 Span 2" AMI/CCS
>    4 BRI        Clear       (In use) (SWEC: MG2)
>    5 BRI        Clear       (In use) (SWEC: MG2)
>    6 BRI        Hardware-assisted HDLC  (In use)
> ### Span  3: B4/0/3 "B4XXP (PCI) Card 0 Span 3" AMI/CCS RED
>    7 BRI        Clear       (In use) (SWEC: MG2)  RED
>    8 BRI        Clear       (In use) (SWEC: MG2)  RED
>    9 BRI        Hardware-assisted HDLC  (In use)  RED
> ### Span  4: B4/0/4 "B4XXP (PCI) Card 0 Span 4" AMI/CCS
>   10 BRI        Clear       (In use) (SWEC: MG2)
>   11 BRI        Clear       (In use) (SWEC: MG2)
>   12 BRI        Hardware-assisted HDLC  (In use)

Ok.

> 6, Asterisk logs (new machine when it failed)
>
> full.4:[Aug  7 12:39:58] WARNING[1654] chan_dahdi.c: Unable to specify channel 1: No such device or address
> full.4:[Aug  7 12:39:58] ERROR[1654] chan_dahdi.c: Unable to open channel 1: No such device or address
> full.4:[Aug  7 12:39:58] ERROR[1654] chan_dahdi.c: Unable to register channel '1-2'
> full.4:[Aug  7 12:39:58] VERBOSE[1654] logger.c:     -- codec_dahdi: using generic PLC
> full.4:[Aug  7 12:39:58] ERROR[1654] codec_dahdi.c: Failed to open /dev/dahdi/transcode: No such file or directory
> full.4:[Aug  7 12:39:58] VERBOSE[1654] logger.c:  codec_dahdi.so => (Generic DAHDI Transcoder Codec Translator)
> full.4:[Aug  7 12:39:59] VERBOSE[1654] logger.c:   == Registered application 'DAHDIBarge'
> full.4:[Aug  7 12:39:59] VERBOSE[1654] logger.c:  app_dahdibarge.so => (Barge in on DAHDI channel application)
> full.4:[Aug  7 12:39:59] VERBOSE[1654] logger.c:   == Setting global variable 'TRUNK' to '"DAHDI/G2"'
> full.4:[Aug  7 12:39:59] VERBOSE[1654] logger.c:   == Registered application 'DAHDIRAS'
> full.4:[Aug  7 12:39:59] VERBOSE[1654] logger.c:  app_dahdiras.so => (DAHDI ISDN Remote Access Server)
> full.4:[Aug  7 12:39:59] VERBOSE[1654] logger.c:   == Setting global variable 'OUT_1' to 'DAHDI/g0'
> full.4:[Aug  7 12:39:59] VERBOSE[1654] logger.c:   == Setting global variable 'OUT_2' to 'DAHDI/g1'
> full.4:[Aug  7 12:39:59] VERBOSE[1654] logger.c:   == Setting global variable 'OUT_3' to 'DAHDI/g3'
> full.4:[Aug  7 12:39:59] VERBOSE[1654] logger.c:   == Setting global variable 'ASTCHANDAHDI' to '1'
> full.4:[Aug  7 18:12:04] VERBOSE[1707] logger.c:   == Registered application 'DAHDIScan'
> full.4:[Aug  7 18:12:04] VERBOSE[1707] logger.c:  app_dahdiscan.so => (Scan DAHDI channels application)
> full.4:[Aug  7 18:12:04] VERBOSE[1707] logger.c:   == Registered application 'DAHDISendKeypadFacility'
> full.4:[Aug  7 18:12:04] VERBOSE[1707] logger.c:   == Parsing '/etc/asterisk/chan_dahdi.conf': [Aug  7 18:12:04] VERBOSE[1707] logger.c:   == Found
> full.4:[Aug  7 18:12:04] VERBOSE[1707] logger.c:   == Parsing '/etc/asterisk/dahdi-channels.conf': [Aug  7 18:12:04] VERBOSE[1707] logger.c:   == Found
> full.4:[Aug  7 18:12:04] VERBOSE[1707] logger.c:   == Parsing '/etc/asterisk/chan_dahdi_additional.conf': [Aug  7 18:12:04] VERBOSE[1707] logger.c:   == F
> ound

Maybe the wcb4xx module is interfering with the mISDN modules. Try 
blacklisting the wcb4xx kernel module and restart DAHDI and mISDN. Or 
try stopping mISDN, restart DAHDI with the wcb4xx module configured and 
see if DAHDI is happy. Or something might be wrong with the udev rules.

> The xen-pciback hide's setup properly on the machines so the xen guests have access to the card. The only difference is between the 2 host machines host kernels:
>
> old: Linux 2.6.32-5-xen-686
> new: Linux 3.13-0.bpo.1-amd64

With such an exotic setup and ancient versions of something that no 
longer exists, I think you are SOL.

HTH,
Patrick



More information about the asterisk-users mailing list